pd rename row index column code example Example: pandas rename index values df.rename(index={'alpha': 'mu'})