my_summarise function

Aggregate data based on a specific statistic