Error tokenizing data. C error: Expected 6 fields in line 469, saw 7

created at 10-28-2021 views: 2

error

When using Python for data processing, the following error is reported:

pandas.errors.ParserError: Error tokenizing data. C error: Expected 6 fields in line 469, saw 7

The error occurs because the format of the data set is incorrect.

solution

At first I thought it was necessary to modify the sep parameter, but there was no effect after the modification

Finally found the parameters to modify the read-in code:

error_bad_lines=False
created at:10-28-2021
edited at: 10-28-2021: