pandas.CategoricalIndex.as_ordered#

CategoricalIndex.as_ordered(*args, **kwargs)[source]#

Set the Categorical to be ordered.

Returns
Categorical

Ordered Categorical.