groupby
Example 4
Example 2
Example 3
Example 1