parameters: (self, name, inplace=False)
return_statement: return ser
docstring: Set the Series name.
  
          Parameters
          ----------
          name : str
          inplace : bool
              Whether to modify `self` directly or return a copy.
docstring_summary: Set the Series name.
docstring_tokens: Set the Series name .
function: def _set_name(self, name, inplace=False):
          """
          Set the Series name.
  
          Parameters
          ----------
          name : str
          inplace : bool
              Whether to modify `self` directly or return a copy.
          """
          inplace = validate_bool_kwarg(inplace, "inplace")
          ser = self if inplace else self.copy()
          ser.name = name
          return ser
function_tokens: def _set_name ( self , name , inplace = False ) : inplace = validate_bool_kwarg ( inplace , "inplace" ) ser = self if inplace else self . copy ( ) ser . name = name return ser