I wish to highlight 'C2' and the values corresponding to 'C2' in columns 'D' and 'E'. I have difficulty as this is a multiindex, and subset selection of columns is not obvious.
df_all = pd.DataFrame()
for i in range(3):
df_temp = pd.DataFrame(
data={'D': [0, 23*i, 19*i],
'E': [18*i, 90*i, -29*i]
},
index=pd.MultiIndex.from_tuples([(0, 1, 'C1'), (3, 4, 'C2'), (6, 8, 'C3')], names=["A", "B", "C"])
)
df_all = df_all.append(df_temp)
df_all

df_all = df_all.append(df_temp)todf_all = pd.concat([df_all, df_temp], axis=0).