wie man eine Spalte zu einem Faktor in Pandas macht

df['col_name'] = df['col_name'].astype('category')
Comfortable Cardinal