rename `last` row index label in dataframe `df` to `a`,df = df.rename(index={last: 'a'})