Obtenez une liste de catégories de variables catégorielles (Python Pandas)

cat_arr = numpy.array(pd.Categorical(dataframe['col_name']).categories)
Troubled Teira