|
@@ -25,7 +25,7 @@ class UpLoadFile:
|
|
|
|
|
|
chunksize = 100000
|
|
|
|
|
|
- for chunk in pd.read_csv(f'/data/excel/{file_name}'.format(file_name=file_name),
|
|
|
+ for chunk in pd.read_csv(f'/home/excel/{file_name}'.format(file_name=file_name),
|
|
|
chunksize=chunksize, encoding='GBK', header=None, low_memory=False, skiprows=1):
|
|
|
# 将每个块存入MySQL,'表名'需要替换为目标表名
|
|
|
chunk.columns = ['delivery_month',
|