I have the following data df_matrix, level_1 and level_2 are the multi-index:
df_matrix
level_1
level_2