I want to downsample some intraday data without adding in new days
df.resample('30Min')
Will add weekends etc which is undesirable. Is there anyway around this?
I want to downsample some intraday data without adding in new days
df.resample('30Min')
Will add weekends etc which is undesirable. Is there anyway around this?
The easiest workaround right now is probably something like:
A combined groupby/resample might work:
Probably the simplest way is to just do a
dropna
afterwards to get rid of the empty rows, e.g.