I have columns NAME,ID, SEX, AGE, GAMES, TEAM, SPORT, YEAR, where each column doesnt have any null value.
Now I want to find Which team has brought the most number of female and male players.
I have written this code -
rf.groupby('Team')['Sex'].value_counts()
and this outputs to -

now here inturn I want to find the team which has maximum num of male and female players individually.. can anyone help me with this. "Which team has brought the most number of female and male players." - this is the question. can you let me know if I want to change the first statement groupby only that I have mentioned above ?