hipdf.core.dtypes.CategoricalDtype.categories

hipdf.core.dtypes.CategoricalDtype.categories#

21 min read time

Applies to Linux

property CategoricalDtype.categories: Index#

An Index containing the unique categories allowed.

Examples#

>>> import cudf
>>> dtype = cudf.CategoricalDtype(categories=['b', 'a'], ordered=True)
>>> dtype.categories
Index(['b', 'a'], dtype='object')