无法跳过阅读 pandas read_csv() 函数中的几行
Unable to skip reading few lines in pandas read_csv() function
尝试使用 on_bad_lines 参数设置为 跳过从 csv 文件中读取几行。
TypeError: read_csv() 得到了一个意外的关键字参数 'on_bad_lines'。文档有这个关键字但是抛出了这个错误。
According to the docs、on_bad_lines
是在 Pandas 1.4.0 中添加的。
您可能使用的是 Pandas 的旧版本。
尝试使用 on_bad_lines 参数设置为 跳过从 csv 文件中读取几行。 TypeError: read_csv() 得到了一个意外的关键字参数 'on_bad_lines'。文档有这个关键字但是抛出了这个错误。
According to the docs、on_bad_lines
是在 Pandas 1.4.0 中添加的。
您可能使用的是 Pandas 的旧版本。