Skip to content Skip to sidebar Skip to footer

Pandas Resample Futurewarning

I have a 1-Minute bar OHLC price CSV file that I am trying to resample to 15-Minute bars. The code that I am using is from this link, and is follows: ohlc_dict = {'open':'first', '

Solution 1:

You can use Resampler.agg:

price15m = df.resample('15Min', closed='right').agg(ohlc_dict).dropna(how='any')

Post a Comment for "Pandas Resample Futurewarning"