📜  将大 csv 分成大块 pandas - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:39.081000             🧑  作者: Mango

代码示例1
for i, chunk in enumerate(pd.read_csv(csv_file, chunksize=1000000)):
        chunk.to_csv('ACTIVITY_EMAIL_OPEN_{}.csv'.format(i), index=False)