如果无法编码,请忽略编码错误
我想知道,如果Latin1无法编码和忽略错误,是否有办法忽略它?
当我要保存到csv文件
I wanted to know if there's a way to ignore it if the latin1 can't encode and ignore the errors?
This when I'm going to save to a csv file
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将关键字参数
errors ='impan>'
传递给dataframe.to_csv
方法,以忽略编码/解码错误。可以在You can pass the keyword argument
errors='ignore'
to theDataFrame.to_csv
method to ignore encoding/decoding errors. More info can be found in the documentation.