如何打印 Rolling 的内容 window

How to print the contents of a Rolling window

我 运行 代码是这样的:

resampleStr = '180 D'
dfRollSeries = df['Close'].rolling(resampleStr)
print(dfRollSeries)

输出为:

Rolling [window=180 D,min_periods=1,center=False,win_type=freq,axis=0,method=single]

我想查看 Rolling window 的条目(作为 Dataframe?),而不是 rolling window。我该怎么做?

解压滚动对象:

[*df['Close'].rolling('180d')]

如果要打印内容:

for s in df['Close'].rolling('180d'):
    print(s)