Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: make calculator in python 
Python :: how to run for loop in python 
Python :: run python file in interactive mode 
Python :: python fernet 
Python :: link python to python3 
Python :: how to save unzipped files in python 
Python :: how to open sound file in python 
Python :: auto python to exe 
Python :: pop vs remove python 
Python :: python test if you can convert to int 
Python :: is vowel python 
Python :: install hydra python 
Python :: dataframe fillna with 0 
Python :: find the area of a circle in python 
Python :: how to randomize order of a list python 
Python :: sns palette 
Python :: python dataframe shape 
Python :: How to Create Caesar Cipher Using Python 
Python :: Add new column based on condition on some other column in pandas. 
Python :: python timestamp 
Python :: how to compare two text files in python 
Python :: last history of whatsapp message with python 
Python :: converting month number to month name python 
Python :: display youtube video in jupyter notebook 
Python :: how to generate random normal number in python 
Python :: python ascii caesar cipher 
Python :: change selected option optionmenu tkinter 
Python :: how to make html files open in chrome using python 
Python :: dataframe choose random 
Python :: python print version 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =