edu_rank = edu.groupby('Education')[edu.columns[9:15]].mean() ## reindexing columns' labels edu_rank.columns = edu_rank.columns.str.replace('ranking_','Episode ') edu_rank
I would like to plot a barh where the y axis are the episodes and on the x axis the average ranking as grouped before
What actually happened:
But it’s plotted exactly in the reverse sense.
Would you know how could I solve this issue?