📜  pandas rolling - Python 代码示例

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

代码示例2
df.rolling(2).sum()
     B
0  NaN
1  1.0
2  3.0
3  NaN
4  NaN