Feb-28-2017, 01:57 PM
Dear Python Experts,
I am trying to group by the column Continent and count each country name (index) in it as well as sum the popluation.
The groupby I have written does...nothing.
Attached an image showing the code snipped an output.
[Image: groupby.jpg]
I would very much appreciate any help!
I am trying to group by the column Continent and count each country name (index) in it as well as sum the popluation.
The groupby I have written does...nothing.
elevenstat = eleven.groupby(['Continent',"PopEst"]).sum()I think I miss the part that counds the index.
Attached an image showing the code snipped an output.
[Image: groupby.jpg]
I would very much appreciate any help!