code: 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
docs: Set the Series name.
  
          Parameters
          ----------
          name : str
          inplace : bool
              whether to modify `self` directly or return a copy