sparkbyexamples.com
Pandas Get Statistics For Each Group?
How to get statistics for each group (such as count, mean, max, min, etc.) using pandas GroupBy? You can achieve this by using groupby() method and agg()
Naveen Nelamali