I think I have found a MUCH easier way to create the graph we are being asked to mimic n the screen linked below. I shared my lines of code. Basically, I used .groupby() in order to group by the
'Region' column, and then isolated the
'Happiness Score' column and plotted that against the
'Region' column. I hope this helps! It yielded the EXACT SAME graph as the one in the explanation, without having to go through a dictionary and for loop, which I find confusing in this case.
Screen Link: Learn data science with Python and R projects
regions = happiness2015.groupby('Region').mean() score = regions['Happiness Score'] score.plot(x='Region', y=score, kind='barh', title='TITLE', xlim=(0,10))