Tag Archives: pandas.errors.ParserError

Python opens the table and appears pandas.errors.ParserError: Error tokenizing data. C error:

CSV files are delimited by commas by default, but commas are used a lot in Chinese, so when writing to CSV, Pandas can set the splitter symbol sep= ‘\t’, which is tab-delimited.
that such read behind the CSV data processing, must remember to add a parameter delimiter:

path = r"Your input path and file"
data = pd.read_csv(path,delimiter="\t")
``