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