Https://jovian.ml/mddanishqamar179/pandas-practice-assignment

pleasue help me i am stuck in assignment 3

please change groupby statement in

country_counts_df = countries_df.groupby('location')['continent'].count()

to groupby(‘continent’)[‘location’].count() they have asked for number of countries in each continent.

2 Likes