![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
随笔
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 · 696 阅读 · 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 · 5604 阅读 · 2 评论 -
随笔
情感分析AI如何影响美国大选词法分析 情感词典机器学习词袋模型词向量模型LSTMlogistic分类开源的自然语言处理(NLP)库Natural language toolkit (NLTK)Apache OpenNLPStanford NLP suiteGate NLP library自然语言工具包(NLTK)是最受欢迎的自然语言处理(NLP)库。它是用 Python...原创 2019-09-28 11:15:34 · 113 阅读 · 0 评论