parameters: (self, inplace=False)
return_statement: return self.set_ordered(True, inplace=inplace)
docstring: 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.
docstring_summary: Set the Categorical to be ordered.
docstring_tokens: Set the Categorical to be ordered .
function: def as_ordered(self, inplace=False):
          """
          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.
          """
          inplace = validate_bool_kwarg(inplace, "inplace")
          return self.set_ordered(True, inplace=inplace)
function_tokens: def as_ordered ( self , inplace = False ) : inplace = validate_bool_kwarg ( inplace , "inplace" ) return self . set_ordered ( True , inplace = inplace )