1

I have data frame as :

    Year      Sex  Count
0    yob1880   F    942
1    yob1880   M   1058
2    yob1881   F    938
3    yob1881   M    997
4    yob1882   F   1028
5    yob1882   M   1099
6    yob1883   F   1054
7    yob1883   M   1030
8    yob1884   F   1172

I need to find the average of Male and female in each yearas below:

Year Sex Count 0 yob1880 F 47.5 1 yob1880 M 52.5 and so on...

0 Answers0