testing by querying all data of 2017
speed of new resampling seems quite good
Nice. Not immediately clear to me from the code: are you forward-filling or backward-filling when doing the 1s resampling? Should be forward-fill.
I tested it on a small example yesterday and the result showed a forward fill.