df['region'] = df['region'].astype('category') df.memory_usage(deep=True)