

def rename(self, name, inplace=False):
    '\n        Set new names on index. Defaults to returning new index.\n\n        Parameters\n        ----------\n        name : str or list\n            name to set\n        inplace : bool\n            if True, mutates in place\n\n        Returns\n        -------\n        new index (of same type and class...etc) [if inplace, returns None]\n        '
    return self.set_names([name], inplace=inplace)

dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py Index.rename/original