cómo hacer de una columna un factor en pandas
df['col_name'] = df['col_name'].astype('category')
Comfortable Cardinal
df['col_name'] = df['col_name'].astype('category')