pop_dict = {'Europe': 24504794.99, 'Oceania': 8874672.33, 'Africa': 77038721.97, 'Asia': 9916003.14, 'Americas': 17169764.73} gapminder_df['pop']= gapminder_df['continent'].map(pop_dict)