问题:
word_neu = []
for c in comment_neu: #comment是一个pandas中的series
word_neu.append(sent2word(c))
运行代码出现问题:‘float’ object has no attribute ‘decode’
很纳闷?怎么会出现float类型呢
然后百度找到一篇博客jieba分词出现如下错误:AttributeError: ‘float’ object has no attribute ‘decode’,但是我执行word_neu.astype (str)
问题仍然出现,想了想感觉有点疏忽。。。,astype()并没有改变wo