def _set_ordered(self, value):
        warn("Setting 'ordered' directly is deprecated, use 'set_ordered'",
             FutureWarning, stacklevel=2)
        self.set_ordered(value, inplace=True)
Sets the ordered attribute to the boolean value
dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical._set_ordered