This question was hard to word, sorry for the bad title. I have a multiindex dataframe created from a pivot_table that I have transposed, the indexes are now the columns. I already know how to reorder the outer index by just doing:
df[['Sunday', 'Monday', 'Tuesday', ...]]
As you can see the outer level is days of the week and the inner level is what I need reordered. I need to have the inner index in the order of 'pre' 'day' 'twi'. Not all days have all inner level values, eg. Sunday has 'pre' and 'twi' but no 'day'. Here is the creation of the pivot_table:
quantile_df = pd.DataFrame(quantile_list, columns=['error', 'weekday', 'sort', 'scaler'])
quantile_df = quantile_df.pivot_table(values='scaler', index='error', columns=['weekday', 'sort'])
last_week = sort_df[sort_df['volume'] > 5000].loc['2022-04-03':'2022-04-09',:].pivot_table(columns=['weekday', 'sort'])
Let me know if more context is needed,
EDIT: Huge thanks to Code Different, I got it! Here's a picture of the final result:

