📜  数据框的 python 中 12 个月 movinf 平均值 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:00.693000             🧑  作者: Mango

代码示例5
# Calculating the short-window simple moving average
short_rolling = data.rolling(window=20).mean()
short_rolling.head(20)