df.index = df.index.rename('new_index_name') # Source: https://pandas.pydata.org/docs/reference/api/pandas.Index.rename.html
df1.rename(index={0: 'a', 1:'b'})