-
Pandas.df.resample()错误TypeError: Only valid with DatetimeIndex, TimedeltaIndex or PeriodIndex, but got an instance of ‘Index’【已解决】
-
问题背景
运行df.resample()更改K线时间间隔,将5minK线转变为15minK线的过程中,出现如题错误。
period_df = df.resample(rule= rule_type, on='candle_begin_time_GMT8').agg({
'open'