Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #breaking #big #csv #chunks #pandas
ADD COMMENT
Topic
Name
4+5 =