open_in_new
content_copy
df['Categorical_Column'] = df['Categorical_Column'].astype('category')