Hi have a multiindex dataframe:
tuples = [(\'YTA_Q3\', 1), (\'YTA_Q3\', 2), (\'YTA_Q3\', 3), (\'YTA_Q3\', 4), (\'YTA_Q3\', 99), (\'YTA_Q3\', 96)] # Index ind
I find the current pandas implementation a bit cumbersome, so I use this:
df1.index = pd.MultiIndex.from_tuples([(ix[0], str(ix[1])) for ix in df1.index.tolist()])