Skip to content

Commit 6177d6a

Browse files
committed
chore: simplifies diff
1 parent cca03e9 commit 6177d6a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pandas/_libs/window/aggregations.pyx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -625,14 +625,17 @@ def roll_skew(ndarray[float64_t] values, ndarray[int64_t] start,
625625
s = start[i]
626626
e = end[i]
627627

628+
# Over the first window, observations can only be added
629+
# never removed
628630
requires_recompute = (
629-
i == 0
630-
or not is_monotonic_increasing_bounds
631-
or s >= end[i - 1]
632-
or numerically_unstable
631+
i == 0
632+
or not is_monotonic_increasing_bounds
633+
or s >= end[i - 1]
633634
)
634635

635636
if not requires_recompute:
637+
# After the first window, observations can both be added
638+
# and removed
636639
# calculate deletes
637640
for j in range(start[i - 1], s):
638641
val = values[j]

0 commit comments

Comments
 (0)