Assume Pandas has been imported into your notebook and the Gapminder GDP data for Europe has been loaded:
Python
import pandas as pd
df = pd.read_csv('data/gapminder_gdp_europe.csv', index_col='country')
Write an expression to find the Per Capita GDP of Serbia in 2007.
print(df.loc['Serbia', 'gdpPercap_2007'])The output is Output
9786.534714