How to Fix Parser rerror: error tokenizing data. C error: expected 2 fields in line 53, saw 3

successfully solved the File “pandas \ _libs \ parsers pyx”, line 2021, in pandas. _libs. Parsers. Raise_parser_error
pandas. Errors. ParserError: Error tokenizing data. C Error: Expected 2 fields in line 53, saw three </ p>

 

directory 

solve the problem

solution

solution


problem solving

File “pandas\_libs\parsers.pyx”, line 2021, in pandas._libs.parsers.raise_parser_error
pandas.errors.ParserError: Error tokenizing data. C error: Expected 2 fields in line 53, saw 3

 

solution

pandas. Errors. ParserError: parsing error: tag data error. C error: expect 2 fields in line 53, see 3

 

solution

because the CSV file is read, the default separation is comma. Analysis shows that the data read contains two fields in a certain cell, that is, two commas may be contained in the value.

,
data= pd.read_csv(data_file, error_bad_lines=False)

 


Read More: