I have a dataset containing "Season - League name - home team winner"
I want to get the most winning team in each league separately for every season; So I did a group by and applied the size function and got this dataset which have the number of each teams home wins per league per season.
When I applied the max function, I managed to get the number of home wins for the most winning team per season per league indeed.
However, I want to fetch the name of the team with the most wins per season per league, not its number of wins.
Any smarter, different way to address this ?