无法将熊猫数据框保存到csv

时间:2018-12-21 06:54:44

标签: python python-3.x pandas error-handling data-science

已解决:熊猫版本已过时。 我尝试了很多次,但是无法将熊猫数据框保存到csv文件中。每次都有错误。请看图片。谢谢!

enter image description here

enter image description here

2 个答案:

答案 0 :(得分:2)

我认为在这种情况下,Pandas无法覆盖现有文件。但是如果没有数据和完整代码,我们将无法真正为您提供帮助。

看看这个解决方案:

Python Pandas unable to overwrite a csv file "OSError: [Errno 22] Invalid argument"

答案 1 :(得分:0)

我的熊猫过时了(0.23.1)。我将其更新为新版本(0.23.4),并且不再存在任何问题。