首页 > 编程语言 >【python error】FutureWarning: The error_bad_lines argument has been deprecated and will be removed in

【python error】FutureWarning: The error_bad_lines argument has been deprecated and will be removed in

时间:2022-08-17 19:14:33浏览次数:113  
标签:python lines argument been bad version error removed

前言

博主运行python代码的时候出现了warning,主要是模块版本引起的。

drawlog.py    warning

drawlog.py:76: FutureWarning: The error_bad_lines argument has been deprecated and will be removed in a future version.

当使用pandas.read_csv函数读取数据时若使用error_bad_lines=False来跳过错误行会出现警告,

这是因为参数error_bad_lines自 1.3.0 版起已被弃用,应改为使用 on_bad_lines 参数来指定遇到坏行时的行为。即将error_bad_lines=False改为on_bad_lines='skip'。

参考

1. sys:1: FutureWarning: The error_bad_lines argument has been deprecated and will be removed in a futu

标签:python,lines,argument,been,bad,version,error,removed
From: https://www.cnblogs.com/happyamyhope/p/16571502.html

相关文章