Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5da4242

Browse files
author
samuel.oranyeli
committedMay 31, 2023
fix test failure
1 parent a1caa23 commit 5da4242

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-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 = 1 # are all groups monotonic increasing?
437+
counter = 0 # 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 = 0
451+
counter += 1
452452
max_arr[slice_start + n] = start
453453

454454
if counts > 0:

‎tests/functions/test_conditional_join.py

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
from janitor import col
1414

1515

16+
pd.set_option("display.max_columns", None)
17+
pd.set_option("display.expand_frame_repr", False)
18+
pd.set_option("max_colwidth", None)
19+
20+
1621
@pytest.fixture
1722
def dummy():
1823
"""Test fixture."""

0 commit comments

Comments
 (0)
Please sign in to comment.