pandas.Series.cat.as_ordered#

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

Set the Categorical to be ordered.

Returns
Categorical

Ordered Categorical.