这个问题感觉很奇怪,报错的地方前后都没有数值,但就是报错。所以在读该文档的时候就将该dataframe格式转为str,就没有问题了
train = pd.read_csv("train.csv",encoding='utf-8',dtype=str)
train=train.astype(str)###################这个地方是解决方案
for index, row in train.iterrows():
words = jieba.cut(row['content'])
for word in words:
    print(word)
 

相关文章:

  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2021-12-21
  • 2021-12-30
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2021-11-03
  • 2021-06-11
  • 2022-12-23
相关资源
相似解决方案