You can simply do unstack after calculating mean for DF to display the bar chart.
import seaborn as sns sns.set_style('white')

Data: (as per edited post)
df

Prepare the multiindex DF by creating an additional column, repeating the labels according to the column choices (here, 4).
df_multi_col = df.T.reset_index() df_multi_col['labels'] = np.concatenate((np.repeat('A', 4), np.repeat('B', 4))) df_multi_col.set_index(['labels', 'index'], inplace=True) df_multi_col

df_multi_col.mean(1).unstack().plot.bar(color=list('rbg')+['0.75'], rot=0, figsize=(6,6), width=2)

source share