
随笔
as394349658
这个作者很懒,什么都没留下…
展开
-
xlrd.biffh.XLRDError: Excel xlsx file; not supported
原因是最近xlrd更新到了2.0.1版本,只支持.xls文件。所以pandas.read_excel(‘xxx.xlsx’)会报错。 可以安装旧版xlrd,直接在cmd中运行: pip install xlrd==1.2.0原创 2021-01-15 15:38:36 · 730 阅读 · 0 评论 -
dataframe写入mongoDB遇到的一些问题以及解决
目录 一、问题 If using all scalar values, you must pass an index. bson.errors.InvalidDocument: Cannot encode object. InvalidDocument: documents must have only string keys等等很多类似的错误 二、问题分析 Mongo需要接受字典格式...原创 2019-12-17 14:50:29 · 5869 阅读 · 2 评论 -
随笔
情感分析 AI如何影响美国大选 词法分析 情感词典 机器学习 词袋模型 词向量模型 LSTM logistic分类 开源的自然语言处理(NLP)库 Natural language toolkit (NLTK) Apache OpenNLP Stanford NLP suite Gate NLP library 自然语言工具包(NLTK)是最受欢迎的自然语言处理(NLP)库。它是用 Python...原创 2019-09-28 11:15:34 · 129 阅读 · 0 评论