As an example, if I were to have a DataFrame that looked like the following:
CONTINENT COUNTRY POPULATION
Europe France 67.06
Europe Italy 60.36
Europe Denmark 5.80
Asia Japan 126.30
Asia China 1398.00
N. America Canada 37.59
Europe Portugal 10.28
Asia S. Korea 51.71
How would I go about selecting the POPULATION
figures for all the countries in Europe
?
I tried a simple df.loc['Europe', 'POPULATION']
but that didn't turn out correctly. Probably quite a simple solution but I can't even find the right words/phrase to Google it properly!