Add group by some time period, while loading and preparing data for model