I am trying to read a 40GB file in pandas and perform some operations on it. I am using chunk, but getting MemoryError. (RAM of System = 32 GB)
Code
df = pd.DataFrame()
for chunk in pd.read_csv('file.csv',low_memory = False, chunksize = 50000):
df = df.append(chunk)
How should my code be in order to read the large file ?