会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
巴拉巴拉程序猿
CnBlogs
Home
New Post
Contact
Admin
Subscription
2019年4月17日
结巴分词出现AttributeError: 'float' object has no attribute 'decode'错误
这个问题感觉很奇怪,报错的地方前后都没有数值,但就是报错。所以在读该文档的时候就将该dataframe格式转为str,就没有问题了train = pd.read_csv("train.csv",encoding='utf-8',dtype=str)train=train.astype(str)###
Read More
posted @ 2019-04-17 16:55 巴拉巴拉程序猿
Views(9097)
Comments(0)
Diggs(0)
公告