@@ -14,7 +14,7 @@ from pandas._libs.algos import groupsort_indexer, ensure_platform_int
1414from pandas.core.algorithms import take_nd
1515
1616
17- def inner_join (ndarray[ int64_t] left , ndarray[ int64_t] right ,
17+ def inner_join (const int64_t[: ] left , const int64_t[: ] right ,
1818 Py_ssize_t max_groups ):
1919 cdef:
2020 Py_ssize_t i, j, k, count = 0
@@ -65,7 +65,7 @@ def inner_join(ndarray[int64_t] left, ndarray[int64_t] right,
6565 _get_result_indexer(right_sorter, right_indexer))
6666
6767
68- def left_outer_join (ndarray[ int64_t] left , ndarray[ int64_t] right ,
68+ def left_outer_join (const int64_t[: ] left , const int64_t[: ] right ,
6969 Py_ssize_t max_groups , sort = True ):
7070 cdef:
7171 Py_ssize_t i, j, k, count = 0
@@ -139,7 +139,7 @@ def left_outer_join(ndarray[int64_t] left, ndarray[int64_t] right,
139139 return left_indexer, right_indexer
140140
141141
142- def full_outer_join (ndarray[ int64_t] left , ndarray[ int64_t] right ,
142+ def full_outer_join (const int64_t[: ] left , const int64_t[: ] right ,
143143 Py_ssize_t max_groups ):
144144 cdef:
145145 Py_ssize_t i, j, k, count = 0
@@ -213,7 +213,7 @@ def _get_result_indexer(sorter, indexer):
213213 return res
214214
215215
216- def ffill_indexer (ndarray[ int64_t] indexer ):
216+ def ffill_indexer (const int64_t[: ] indexer ):
217217 cdef:
218218 Py_ssize_t i, n = len (indexer)
219219 ndarray[int64_t] result
@@ -252,7 +252,7 @@ ctypedef fused join_t:
252252
253253@ cython.wraparound (False )
254254@ cython.boundscheck (False )
255- def left_join_indexer_unique (ndarray[ join_t] left , ndarray[ join_t] right ):
255+ def left_join_indexer_unique (join_t[: ] left , join_t[: ] right ):
256256 cdef:
257257 Py_ssize_t i, j, nleft, nright
258258 ndarray[int64_t] indexer
@@ -677,10 +677,10 @@ ctypedef fused by_t:
677677 uint64_t
678678
679679
680- def asof_join_backward_on_X_by_Y (ndarray[ asof_t] left_values ,
681- ndarray[ asof_t] right_values ,
682- ndarray[ by_t] left_by_values ,
683- ndarray[ by_t] right_by_values ,
680+ def asof_join_backward_on_X_by_Y (asof_t[: ] left_values ,
681+ asof_t[: ] right_values ,
682+ by_t[: ] left_by_values ,
683+ by_t[: ] right_by_values ,
684684 bint allow_exact_matches = 1 ,
685685 tolerance = None ):
686686
@@ -746,10 +746,10 @@ def asof_join_backward_on_X_by_Y(ndarray[asof_t] left_values,
746746 return left_indexer, right_indexer
747747
748748
749- def asof_join_forward_on_X_by_Y (ndarray[ asof_t] left_values ,
750- ndarray[ asof_t] right_values ,
751- ndarray[ by_t] left_by_values ,
752- ndarray[ by_t] right_by_values ,
749+ def asof_join_forward_on_X_by_Y (asof_t[: ] left_values ,
750+ asof_t[: ] right_values ,
751+ by_t[: ] left_by_values ,
752+ by_t[: ] right_by_values ,
753753 bint allow_exact_matches = 1 ,
754754 tolerance = None ):
755755
@@ -815,10 +815,10 @@ def asof_join_forward_on_X_by_Y(ndarray[asof_t] left_values,
815815 return left_indexer, right_indexer
816816
817817
818- def asof_join_nearest_on_X_by_Y (ndarray[ asof_t] left_values ,
819- ndarray[ asof_t] right_values ,
820- ndarray[ by_t] left_by_values ,
821- ndarray[ by_t] right_by_values ,
818+ def asof_join_nearest_on_X_by_Y (asof_t[: ] left_values ,
819+ asof_t[: ] right_values ,
820+ by_t[: ] left_by_values ,
821+ by_t[: ] right_by_values ,
822822 bint allow_exact_matches = 1 ,
823823 tolerance = None ):
824824
@@ -864,8 +864,8 @@ def asof_join_nearest_on_X_by_Y(ndarray[asof_t] left_values,
864864# asof_join
865865# ----------------------------------------------------------------------
866866
867- def asof_join_backward (ndarray[ asof_t] left_values ,
868- ndarray[ asof_t] right_values ,
867+ def asof_join_backward (asof_t[: ] left_values ,
868+ asof_t[: ] right_values ,
869869 bint allow_exact_matches = 1 ,
870870 tolerance = None ):
871871
@@ -917,8 +917,8 @@ def asof_join_backward(ndarray[asof_t] left_values,
917917 return left_indexer, right_indexer
918918
919919
920- def asof_join_forward (ndarray[ asof_t] left_values ,
921- ndarray[ asof_t] right_values ,
920+ def asof_join_forward (asof_t[: ] left_values ,
921+ asof_t[: ] right_values ,
922922 bint allow_exact_matches = 1 ,
923923 tolerance = None ):
924924
@@ -971,8 +971,8 @@ def asof_join_forward(ndarray[asof_t] left_values,
971971 return left_indexer, right_indexer
972972
973973
974- def asof_join_nearest (ndarray[ asof_t] left_values ,
975- ndarray[ asof_t] right_values ,
974+ def asof_join_nearest (asof_t[: ] left_values ,
975+ asof_t[: ] right_values ,
976976 bint allow_exact_matches = 1 ,
977977 tolerance = None ):
978978
0 commit comments