📅  最后修改于: 2022-03-11 14:58:25.031000             🧑  作者: Mango
#pandas.Series.rolling().mean() method
values = pd.DataFrame()
values['daily_values'] = pd.Series(range(1,20,2))
values
values['rolling_mean_2'] = values['daily_values'].rolling(2).mean()
values