HUANGZHIHAO1994 / weibo-analysis-and-visualization

使用python抓取微博数据并对微博文本分析和可视化,LDA(树图)、关系图、词云、时间趋势(折线图)、热度地图、词典情感分析(饼图和3D柱状图)、词向量神经网络情感分析、tfidf聚类、词向量聚类、关键词提取、文本相似度分析等
MIT License
805 stars 139 forks source link

pie.py,3Dbar.py运行报错KeyError #7

Open CZ0805 opened 3 years ago

CZ0805 commented 3 years ago

sys:1: DtypeWarning: Columns (2,8) have mixed types.Specify dtype option on import or set low_memory=False. Traceback (most recent call last): File "[此处省略部分路径名]\Python\Python36\site-packages\pandas\core\indexes\base.py", line 2895, in get_loc return self._engine.get_loc(casted_key) File "pandas_libs\index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\hashtable_class_helper.pxi", line 1675, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas_libs\hashtable_class_helper.pxi", line 1683, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: '情感得分'

设置了low_memory=False后,解决了第一个问题 下面的‘情感得分’仍然捕捉不到,请问是什么原因,未改动过代码