def _set_name(self, name, inplace=False):
inplace = validate_bool_kwarg(inplace, '<STR_LIT>')<EOL>ser = self if inplace else self.copy()<EOL>ser.name = name<EOL>return ser<EOL>
Set the Series name.

Parameters
----------
name : str
inplace : bool
    whether to modify `self` directly or return a copy