发生异常: TypeError read_csv() got an unexpected keyword argument ‘error_bad_lines’
在较旧版本的 pandas 中,确实没有 error_bad_lines 参数。该参数是在较新版本的 pandas(从 1.2.0 版开始)中引入的。
要解决这个问题,最好的解决方案是将 pandas 更新到最新版本。
更新版本:
pip install --upgrade pandas
如果上面的不行
就卸掉pandns 重装
pip uninstall pandas
再指定版本安装
pip install pandas==1.2.0
或
pip install pandas==1.3.0