在python中将数据类型(';<;U13309';)转换为字符串

在python中将数据类型(';<;U13309';)转换为字符串,python,numpy,tensorflow,types,bert-language-model,Python,Numpy,Tensorflow,Types,Bert Language Model,我有一个numpy数组,其中包含由pandas dataframe的groupby创建的文本数据和进一步的数据预处理。 现在,我想将数据拟合到模型中,但收到以下错误消息: ufunc 'add' did not contain a loop with signature matching types (dtype('<U13309'), dtype('<U13309')) -> dtype('<U13309') ufunc'add'不包含具有签名匹配类型的循环(dtyp

我有一个numpy数组,其中包含由pandas dataframe的groupby创建的文本数据和进一步的数据预处理。 现在,我想将数据拟合到模型中,但收到以下错误消息:

ufunc 'add' did not contain a loop with signature matching types (dtype('<U13309'), dtype('<U13309')) -> dtype('<U13309')

ufunc'add'不包含具有签名匹配类型的循环(dtype('你不能使用
str()
)吗?我现在通过将我的np.array()转换回一个列表来修复它,但我不知道这是什么意思这是一个字符串-一个非常长的unicode字符串。你不能对这样的数组进行数学运算