pandaserrorsParserError Error tokenizing data C error Expected 1 fields in line 3 saw 2
This error occurs when parsing a file with the pandas library and the number of fields (columns) in the third line of the file does not match the expected number of fields (columns) based on the first line of the file.
To fix this error, you should check the formatting of the file. Make sure that each line has the same number of fields (columns) separated by the same delimiter. You can also try specifying the delimiter explicitly in the read_csv function if the default delimiter is not working correctly
原文地址: https://www.cveoy.top/t/topic/hvNc 著作权归作者所有。请勿转载和采集!