CategoricalDtype.categories
An Index containing the unique categories allowed.
Index
Examples
>>> cat_type = pd.CategoricalDtype(categories=['a', 'b'], ordered=True) >>> cat_type.categories Index(['a', 'b'], dtype='object')
previous
pandas.CategoricalDtype
next
pandas.CategoricalDtype.ordered