Skip to content

Commit a1caa23

Browse files
author
samuel.oranyeli
committed
use 0/1 for counter check for monotonicity
1 parent 1de5bbe commit a1caa23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

janitor/functions/_numba.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def _numba_equi_join_range_join(
434434
# used to find the first possible match
435435
# for the less than section below
436436
max_arr = np.empty_like(le_arr2)
437-
counter = 0 # are all groups monotonic increasing?
437+
counter = 1 # are all groups monotonic increasing?
438438
for num in prange(length):
439439
slice_start = slice_starts[num]
440440
slice_end = slice_ends[num]
@@ -448,7 +448,7 @@ def _numba_equi_join_range_join(
448448
if check:
449449
start = new_value
450450
else:
451-
counter += 1
451+
counter = 0
452452
max_arr[slice_start + n] = start
453453

454454
if counts > 0:

0 commit comments

Comments
 (0)