JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

pd.read_csv pandas.errors.ParserError: Error tokenizing data. C error: Expected 26 fields in line 5799790, saw 34 错误解决

发布时间 2023-08-24 16:15:47作者: myrj

df1=pd.read_csv(path1,encoding="utf-8",chunksize=50000, error_bad_lines=False)

尽管提示:

Warning (from warnings module):
File "D:\Python37\lib\idlelib\run.py", line 550
exec(code, self.locals)
FutureWarning: The error_bad_lines argument has been deprecated and will be removed in a future version.

只是提示警告,但确实略过了错误

    本栏目推荐文章
  • vscode错误:Unable to connect to VS Code server: Error in request.
  • 【转载】淘宝爬虫sign、token详解
  • 数据库 - 已成功与服务器建立连接,但在登录过程中发生错误。(提供程序:SSL提供程序,错误:0-证书链是由不受信任的颁发机构颁发的。)”asp.net core:8.0
  • go使用jwt创建token并验证token的有效性
  • Oracle 19c 升级错误【verify_queryable_inventory returned ORA-20001: Latest xml inventory is not loaded into table】
  • 从错误中学习: 了解Go编程的6个坏习惯
  • iMessage群发,iMessage群发软件开发(常见代码错误与解决方案篇)
  • nuxt构建失败:if (codePoint 》= 0x3_00 && codePoint (= 0x3_6F) { SyntaxError: Invalid or unexpected token
  • wps在win7下提示错误“无法定位程序输入点 ucrtbase.terminate”
  • Go语言常见错误| 将接口作为返回值
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们