读取CSV文件报错如下:
ParserError: NULL byte detected. This byte cannot be processed in Python’s native csv library at the moment, so please pass in engine=‘c’ instead
解决方法,添加参数error_bad_lines=False即可
pd.read_csv(path,error_bad_lines=False)
读取CSV文件报错如下:
ParserError: NULL byte detected. This byte cannot be processed in Python’s native csv library at the moment, so please pass in engine=‘c’ instead
解决方法,添加参数error_bad_lines=False即可
pd.read_csv(path,error_bad_lines=False)