Set the Categorical to be ordered.
Whether or not to set the ordered attribute in-place or return a copy of this categorical with ordered set to True.
Ordered Categorical.
pandas.CategoricalIndex.set_categories
pandas.CategoricalIndex.as_unordered