Skip to content


PyTip - Saving memory when reading CSV file in pandas

python, pandas1 min read

# Saving memory while reading a CSV file in Pandas

There could be many columns in the CSV file, but if you are using only few specific columns always mention usecols option in pd.read_csv like below

Have a look at the memory usage field in the below output

So when you have information about structure beforehand, use it.