I have a dataframe with 4 columns (Name, Gender, Number of births) and I want to calculate the total number of females and males and I have to make like a groupby gender. I've already done it with pandas like this :
names1880.groupby(['Gender']).sum()
And I had an ouput like this
Gender----|----Births
F | 166868
----------|------------
M | 120851
But now I have to do it by Numpy not with Pandas