def as_ordered(self, inplace=False):
        return self.set_ordered(True, inplace=inplace)
Sets the Categorical to be ordered
dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical.as_ordered