summarise function

Summarise each group down to one row