I currently have this code below to combine my data in groups defined by intervals.
var group = data.GroupBy(x => new Group { YearFrom = x.FirstTimesta