把第一行的列数变得足够多,就可以解决这个问题
ParserError: Expected 154 fields in line 147, saw 158
import time
import pandas as pd
import os
file = 'dd.csv'
data = pd.read_csv(file,header=0,encoding='utf-8',
on_bad_lines=None,engine="python")
把第一行的列数变得足够多,就可以解决这个问题
ParserError: Expected 154 fields in line 147, saw 158
import time
import pandas as pd
import os
file = 'dd.csv'
data = pd.read_csv(file,header=0,encoding='utf-8',
on_bad_lines=None,engine="python")