I would like to group-by "grouping" column and get the max() value in said period
The grouping should be based on whether adjacent values