Optional Question - Create a dataframe containing 10 countries with the lowest GDP per capita, among the counties with population greater than 100 million

Has any one tried this question?

(df[df[“population”] > 100]).sort_values(“GDPperCapita”,ascending=True).head(10)

let me know if it worked or not. And note that I haven’t used the exact column name and the value for population, you should change it before executing it.