I have a table like this:
value time date
0 1 06:30:04 2021-01-01
1 1 07:02:37 2021-01-01
2 1 08:22:45 2021-01-01
3 1 08:33:39 2021-01-01
4 1 09:02:41 2021-01-01
I want to group by the date but in custom range. if the time is exactly after 12:30:00 p.m., I want to count that as the next day. or in other words, the wanted range starts from 12:31 p.m. to 12:30 p.m. of day after. for example, if the date is 2021-01-01 and the time is 12:30:01 p.m. the row goes to the 2021-01-02 element. how can I do that?