Skip to content

Commit 9d9451d

Browse files
committed
fix: re-add consecutive count reset to recompute
1 parent 6177d6a commit 9d9451d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/_libs/window/aggregations.pyx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,10 @@ def roll_skew(ndarray[float64_t] values, ndarray[int64_t] start,
648648
&num_consecutive_same_value, &prev_value)
649649

650650
if requires_recompute or numerically_unstable:
651+
652+
prev_value = values[s]
653+
num_consecutive_same_value = 0
654+
651655
mean = m2 = m3 = 0.0
652656
nobs = 0
653657

0 commit comments

Comments
 (0)