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:
- Python error: pandas.errors.ParserError: Error tokenizing data. C error: Expected 3……
- ParserError: Error tokenizing data. C error: EOF inside string starting at row 917
- Solution pandas.errors.ParserError : Error tokenizing data. C error: Buffer overflow caught
- How to Fix Sklearn ValueError: This solver needs samples of at least 2 classes in the data, but the data
- How to Fix “junit.framework.Comparison Failure Expected: but was”
- The registered version of ArcEngine can edit the data in SDE (How to Fix 0x80040356 Error)
- boot.asm:1:error:parser:instruction expected
- Python: How to Fix “Ord() expected string of length 1, but int found”
- How to Fix “the data of store is lost after Vue refreshes the page”
- error Expected an assignment or function call and instead saw an expression
- How to Fix error: ‘for’ loop initial declarations are only allowed in C99 mode
- How to fix “Outlook data file cannot be accessed” error (Solved)
- How to Fix Error in module RSQL of the database interface
- error C2057: expected constant expression (Can the size of an array in C language be defined when the program is running?)
- How to Fix TypeError: Cannot cast array data from dtype(‘float64‘) to dtype(‘<U32‘)….
- Error: could not open `C:\Program Files\Java\jre1.8.0_211\lib\amd64\jvm.cfg’ (How to Fix)
- The language of C__ FILE__ 、__ LINE__ And line
- How to empty a whole line in latex (simple and effective)
- Line 1: error: class, interface, or enum expected [in MainClass.java]
- Error: unrecognized command line option “-std=c++11”, to solve the problem that ubuntu does not support c++11