@@ -225,7 +225,10 @@ def full_outer_join(const intp_t[:] left, const intp_t[:] right,
225
225
226
226
@ cython.wraparound (False )
227
227
@ cython.boundscheck (False )
228
- cdef void _get_result_indexer(intp_t[::1 ] sorter, intp_t[::1 ] indexer) noexcept nogil:
228
+ cdef void _get_result_indexer(
229
+ const intp_t[::1 ] sorter,
230
+ intp_t[::1 ] indexer,
231
+ ) noexcept nogil:
229
232
""" NOTE: overwrites indexer with the result to avoid allocating another array"""
230
233
cdef:
231
234
Py_ssize_t i, n, idx
@@ -681,8 +684,8 @@ def outer_join_indexer(ndarray[numeric_object_t] left, ndarray[numeric_object_t]
681
684
from pandas._libs.hashtable cimport Int64HashTable
682
685
683
686
684
- def asof_join_backward_on_X_by_Y (ndarray[ numeric_t] left_values ,
685
- ndarray[ numeric_t] right_values ,
687
+ def asof_join_backward_on_X_by_Y (const numeric_t[: ] left_values ,
688
+ const numeric_t[: ] right_values ,
686
689
const int64_t[:] left_by_values ,
687
690
const int64_t[:] right_by_values ,
688
691
bint allow_exact_matches = True ,
@@ -752,8 +755,8 @@ def asof_join_backward_on_X_by_Y(ndarray[numeric_t] left_values,
752
755
return left_indexer, right_indexer
753
756
754
757
755
- def asof_join_forward_on_X_by_Y (ndarray[ numeric_t] left_values ,
756
- ndarray[ numeric_t] right_values ,
758
+ def asof_join_forward_on_X_by_Y (const numeric_t[: ] left_values ,
759
+ const numeric_t[: ] right_values ,
757
760
const int64_t[:] left_by_values ,
758
761
const int64_t[:] right_by_values ,
759
762
bint allow_exact_matches = 1 ,
@@ -824,8 +827,8 @@ def asof_join_forward_on_X_by_Y(ndarray[numeric_t] left_values,
824
827
return left_indexer, right_indexer
825
828
826
829
827
- def asof_join_nearest_on_X_by_Y (ndarray[ numeric_t] left_values ,
828
- ndarray[ numeric_t] right_values ,
830
+ def asof_join_nearest_on_X_by_Y (const numeric_t[: ] left_values ,
831
+ const numeric_t[: ] right_values ,
829
832
const int64_t[:] left_by_values ,
830
833
const int64_t[:] right_by_values ,
831
834
bint allow_exact_matches = True ,
0 commit comments