group_by Time (class Period) hourly

See the FAQ: How to do a minimal reproducible example reprex for beginners. This question is harder to do in the abstract than if some representative data is included.