Skip to content

Commit 0df2188

Browse files
committed
move location to initialize num_consecutive_same_value down
1 parent b45c164 commit 0df2188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/_numba/kernels/var_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def sliding_var(
8080
ssqdm_x = 0.0
8181
compensation_add = 0.0
8282
compensation_remove = 0.0
83-
num_consecutive_same_value = 0
8483

8584
min_periods = max(min_periods, 1)
8685
is_monotonic_increasing_bounds = is_monotonic_increasing(
@@ -95,6 +94,7 @@ def sliding_var(
9594
if i == 0 or not is_monotonic_increasing_bounds:
9695

9796
prev_value = values[s]
97+
num_consecutive_same_value = 0
9898

9999
for j in range(s, e):
100100
val = values[j]

0 commit comments

Comments
 (0)