pandas.Series.cat.as_ordered — pandas 0.25.3 documentation (original) (raw)

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

Set the Categorical to be ordered.

Parameters: inplace : bool, default False Whether or not to set the ordered attribute in-place or return a copy of this categorical with ordered set to True.
Returns: Categorical Ordered Categorical.