📜  数据框滚动窗口 - Python 代码示例

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

代码示例2
#s can be a series or a dataFrame
for window in s.rolling(window=2): #windows size 2 
  print(window)