0

I have a pandas dataframe with football team, football players and the number of minutes played during the season.

Team Player Minutes played
1 a 2
1 b 10
1 c 0
2 a 28
2 b 50
2 e 7
3 c 200
3 p 10

For each team, I need the name of the player with the most minutes played. I tried a for loop but got lost when iterating over the teams numbers. How could I manage to get it ?

Stan75
  • 3
  • 2

0 Answers0