parameters: (self, mapper, axis, copy=True, level=None)
return_statement: return obj
docstring: Rename one of axes.
  
          Parameters
          ----------
          mapper : unary callable
          axis : int
          copy : boolean, default True
          level : int, default None
docstring_summary: Rename one of axes.
docstring_tokens: Rename one of axes .
function: def rename_axis(self, mapper, axis, copy=True, level=None):
          """
          Rename one of axes.
  
          Parameters
          ----------
          mapper : unary callable
          axis : int
          copy : boolean, default True
          level : int, default None
          """
          obj = self.copy(deep=copy)
          obj.set_axis(axis, _transform_index(self.axes[axis], mapper, level))
          return obj
function_tokens: def rename_axis ( self , mapper , axis , copy = True , level = None ) : obj = self . copy ( deep = copy ) obj . set_axis ( axis , _transform_index ( self . axes [ axis ] , mapper , level ) ) return obj