我正在尝试将TSV文件读取到Pandas Dataframe,但出现错误
SELECT COALESCE(MAX(b.count), 0) + MAX(a.count)
FROM a
FULL JOIN b ON a.ID = b.ID
下面是我正在使用的代码。
Error tokenizing data. C error: Expected 1 fields in line 6, saw 2
更新:
list_ = []
for file_ in allFiles:
try:
df = pd.read_csv(file_, index_col=None, header=None, sep='\t')
list_.append(df)
temp = pd.concat(list_)
except pd.errors.EmptyDataError:
continue