Categorical.dtype
The CategoricalDtype for this instance.
CategoricalDtype
Examples
>>> cat = pd.Categorical(['a', 'b'], ordered=True) >>> cat ['a', 'b'] Categories (2, object): ['a' < 'b'] >>> cat.dtype CategoricalDtype(categories=['a', 'b'], ordered=True, categories_dtype=object)
previous
pandas.Categorical.ordered
next
pandas.Categorical.from_codes