I am loading in a csv into a pandas dataframe. The csv is 3.6 gb and I have 64 gb of ram. How is it possible that the memory exceeds 64 gb when loading a 3.6 gb file?
Is there a better way to load the entire dataframe that does not take up so much memory or perhaps there is something wrong with my computer.
Here is the code I am using to load the csv
df = pd.read_csv('../input/ML_DATA.csv')
I could also provide the csv file if that is of interest.
Here is a sample of what the data looks like
df = pd.read_csv('../input/ML_DATA.csv', nrows=10)
df.shape -> (10, 4247)
Here is a screen shot
Here is a print of df.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 3 entries, 0 to 2
Columns: 4247 entries, Location+Type to Pct of housing units in 4+ unit buildings
dtypes: float64(1132), int64(3), object(3112)
memory usage: 99.7+ KB
None
