change index name pd dataframe code example Example: pandas rename index values df.rename(index={'alpha': 'mu'})