Answers for "pandas to csv in chunks"

1

breaking big csv into chunks pandas

for i, chunk in enumerate(pd.read_csv(csv_file, chunksize=1000000)):
        chunk.to_csv('ACTIVITY_EMAIL_OPEN_{}.csv'.format(i), index=False)
Posted by: Guest on May-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language