We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50842c0 commit 08b70d8Copy full SHA for 08b70d8
pandas/core/window/rolling.py
@@ -872,6 +872,17 @@ class Window(_Window):
872
3 NaN
873
4 NaN
874
875
+ Rolling sum with a window length of 2, using the 'gaussian'
876
+ window type (note how we need to specify std).
877
+
878
+ >>> df.rolling(2, win_type='gaussian').sum(std=3)
879
+ B
880
+ 0 NaN
881
+ 1 0.986207
882
+ 2 2.958621
883
+ 3 NaN
884
+ 4 NaN
885
886
Rolling sum with a window length of 2, min_periods defaults
887
to the window length.
888
0 commit comments