Data Analysis: Assignment 3

Will you please help for the last two optional questions of Assignment 3: Working with Pandas.

use this

Thank you so much for your cooperation.

Will someone please help me out with this. Thanks.

hey @harsh-kumar10042000
I tink you are taking the hint too literally…
As it says use groupby it does not mean to say use groupby on location…
As the question suggests we need number of countries for each continent so maybe you have to do something different for groupby…
After this you need to select location and then aggregate using count

I am not telling you exact solution as it would help you to understand better…
Hope it helps

1 Like

Thanks Vinay for answering it in a subtle manner, was able to solve it and get the concept behind it.

1 Like