Skip to content

Commit 952c6e7

Browse files
committed
ENH: cython type fixes
1 parent cb04ef7 commit 952c6e7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/src/reindex.pyx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ def ordered_left_join_put(ndarray[int64_t] left, ndarray[int64_t] right,
409409
for k from kleft <= k < kleft + kright:
410410
out[i, k] = NaN
411411

412+
@cython.wraparound(False)
413+
@cython.boundscheck(False)
412414
def inner_join_indexer(ndarray[int64_t] left, ndarray[int64_t] right):
413415
'''
414416
Two-pass algorithm?
@@ -459,10 +461,12 @@ def inner_join_indexer(ndarray[int64_t] left, ndarray[int64_t] right):
459461
def _inner_join_count(ndarray[int64_t] left, ndarray[int64_t] right):
460462
pass
461463

464+
@cython.wraparound(False)
465+
@cython.boundscheck(False)
462466
def outer_join_indexer(ndarray[int64_t] left, ndarray[int64_t] right):
463467
cdef:
464468
Py_ssize_t i, j, nright, nleft, tot, count
465-
int64_t val
469+
int64_t lval, rval
466470
ndarray[int32_t] lindexer, rindexer
467471
ndarray[int64_t] result
468472

@@ -489,6 +493,7 @@ def outer_join_indexer(ndarray[int64_t] left, ndarray[int64_t] right):
489493
result[count] = right[j]
490494
j += 1
491495
count += 1
496+
break
492497
elif j == nright:
493498
while i < nleft:
494499
lindexer[count] = i

0 commit comments

Comments
 (0)