df.rolling(period,min_period).somemethod()
rolling 方法很好用
freq 参数:从0.18版本中已经被舍弃。
第二种方法:pd.rolling_max(df['A'],15)
使用时提示:pd.rolling_sum is deprecated for Series and will be removed in a future version, replace with
Series.rolling(min_periods=24,window=24,center=False).sum()
“请使用第一种方法”