在《 Python Pandas窗口函数》一节,我们重点介绍了窗口函数。 ... r = df.rolling(window=3,min_periods=1); #使用aggregate()聚合操作; print(r.aggregate(np.sum)).
確定! 回上一頁