我正在运行以下基本代码:
dfMain.to_csv('./January_filtered_International_WE.csv')
一直到昨天才恢复正常。今天早上,我在运行代码时升级到pandas 0.25.0,现在我无法将我的500 k行数据格式写入csv。我可以提到,我让朱庇特笔记本运行是为了做一些处理,所以今天早上我打开它的时候,已经处理了dataFrame。
版本(使用Windows 10)
Jupyter notebook : 5.7.8
Python : 3.6.7
Pandas : 0.25.0我想以一种快速高效的方式保存我的DataFrame,因为我将在未来几次加载它。我不想关闭笔记本,因为这将删除dataFrame。
我试过:
Pandas 0.24.2 (以前使用的版本),但仍然得到__init__() got an unexpected keyword argument 'tupleize_cols'pd.to_pickle但有一个memoryErrorpd.to_hdf但有一个memoryErrorERROR: ipython 5.8.0 has requirement prompt-toolkit<2.0.0,>=1.0.4, but you'll have prompt-toolkit 2.0.9 which is incompatible
ERROR: jupyter-console 6.0.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but you'll have prompt-toolkit 1.0.16 which is incompatible.
作为另一种选择,我进入了PyCharm并随机选择了一个DataFrame.to_csv,它起了作用。这让我觉得问题在于朱庇特笔记本。
任何关于如何保存DataFrame (~12 GB)的帮助都是非常感谢的!
发布于 2020-03-25 14:55:25
重新安装朱庇特在我的情况下起了作用
发布于 2019-10-10 03:45:57
我一直得到同样的错误,但更新木星修复了它。
https://stackoverflow.com/questions/57127282
复制相似问题