Pandas does not broadly classify data as either continuous or categorical but has precise technical definitions for many distinct data types.
Reducing memory by changing data types
Getting ready
This recipe changes the data type of one of the object columns from the college dataset to the special pandas Categorical data type to drastically reduce its memory usage.
How to do it...
- After reading in our college dataset, we select a few columns of different data types that will clearly show how much memory may be saved:
>>> college = pd.read_csv('data/college...