简体   繁体   English

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

[英]Cannot save pandas dataframe to csv

Solved: Pandas version is outdated.已解决:Pandas 版本已过时。 I try many times but cannot save my pandas dataframe to csv file.我尝试了很多次,但无法将我的 Pandas 数据帧保存到 csv 文件。 Every time, it has error.每次都有错误。 Please see the pictures.请看图片。 Thank you!谢谢!

enter image description here在此处输入图片说明

enter image description here在此处输入图片说明

I think in this case Pandas can't overwrite the existing file.我认为在这种情况下 Pandas 不能覆盖现有文件。 But without the data and the full code we can't really help you.但是如果没有数据和完整的代码,我们真的无法为您提供帮助。

Have a look to this solutions:看看这个解决方案:

Python Pandas unable to overwrite a csv file "OSError: [Errno 22] Invalid argument" Python Pandas 无法覆盖 csv 文件“OSError: [Errno 22] Invalid argument”

My Pandas was outdated(0.23.1).我的熊猫已经过时了(0.23.1)。 I updated it to new one (0.23.4) and there is not issue anymore.我将其更新为新的 (0.23.4),不再有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM