I was wondering if there was a more efficient (efficient as in simpler/cleaner code) way of making a case statement like the one below...
When resample from monthly data to quarterly, I want my last value NaN to remain as NaN. How should I tweak my code?
I want to make an average every 23 hours from 10:00 a.m to 9:00 a.m. the next day. but i can\'t find solution