Answers for "read a large dataframe in pandas"

0

read a large dataframe in pandas

filename='../input/*.csv'
chunksize=10**6
reader = pd.read_csv(filename,chunksize=chunksize, 
                    low_memory=False)    
train=pd.DataFrame()
for i, chunk in enumerate(reader):
    train=pd.concat([train,chunk],axis=0)
Posted by: Guest on October-24-2021

Code answers related to "read a large dataframe in pandas"

Python Answers by Framework

Browse Popular Code Answers by Language