📜  滚动窗口熊猫 - Python 代码示例

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

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