@@ -14,7 +14,7 @@ from pandas._libs.algos import groupsort_indexer, ensure_platform_int
14
14
from pandas.core.algorithms import take_nd
15
15
16
16
17
- def inner_join (ndarray[ int64_t] left , ndarray[ int64_t] right ,
17
+ def inner_join (const int64_t[: ] left , const int64_t[: ] right ,
18
18
Py_ssize_t max_groups ):
19
19
cdef:
20
20
Py_ssize_t i, j, k, count = 0
@@ -65,7 +65,7 @@ def inner_join(ndarray[int64_t] left, ndarray[int64_t] right,
65
65
_get_result_indexer(right_sorter, right_indexer))
66
66
67
67
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 ,
69
69
Py_ssize_t max_groups , sort = True ):
70
70
cdef:
71
71
Py_ssize_t i, j, k, count = 0
@@ -139,7 +139,7 @@ def left_outer_join(ndarray[int64_t] left, ndarray[int64_t] right,
139
139
return left_indexer, right_indexer
140
140
141
141
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 ,
143
143
Py_ssize_t max_groups ):
144
144
cdef:
145
145
Py_ssize_t i, j, k, count = 0
@@ -213,7 +213,7 @@ def _get_result_indexer(sorter, indexer):
213
213
return res
214
214
215
215
216
- def ffill_indexer (ndarray[ int64_t] indexer ):
216
+ def ffill_indexer (const int64_t[: ] indexer ):
217
217
cdef:
218
218
Py_ssize_t i, n = len (indexer)
219
219
ndarray[int64_t] result
@@ -252,7 +252,7 @@ ctypedef fused join_t:
252
252
253
253
@ cython.wraparound (False )
254
254
@ 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 ):
256
256
cdef:
257
257
Py_ssize_t i, j, nleft, nright
258
258
ndarray[int64_t] indexer
@@ -677,10 +677,10 @@ ctypedef fused by_t:
677
677
uint64_t
678
678
679
679
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 ,
684
684
bint allow_exact_matches = 1 ,
685
685
tolerance = None ):
686
686
@@ -746,10 +746,10 @@ def asof_join_backward_on_X_by_Y(ndarray[asof_t] left_values,
746
746
return left_indexer, right_indexer
747
747
748
748
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 ,
753
753
bint allow_exact_matches = 1 ,
754
754
tolerance = None ):
755
755
@@ -815,10 +815,10 @@ def asof_join_forward_on_X_by_Y(ndarray[asof_t] left_values,
815
815
return left_indexer, right_indexer
816
816
817
817
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 ,
822
822
bint allow_exact_matches = 1 ,
823
823
tolerance = None ):
824
824
@@ -864,8 +864,8 @@ def asof_join_nearest_on_X_by_Y(ndarray[asof_t] left_values,
864
864
# asof_join
865
865
# ----------------------------------------------------------------------
866
866
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 ,
869
869
bint allow_exact_matches = 1 ,
870
870
tolerance = None ):
871
871
@@ -917,8 +917,8 @@ def asof_join_backward(ndarray[asof_t] left_values,
917
917
return left_indexer, right_indexer
918
918
919
919
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 ,
922
922
bint allow_exact_matches = 1 ,
923
923
tolerance = None ):
924
924
@@ -971,8 +971,8 @@ def asof_join_forward(ndarray[asof_t] left_values,
971
971
return left_indexer, right_indexer
972
972
973
973
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 ,
976
976
bint allow_exact_matches = 1 ,
977
977
tolerance = None ):
978
978
0 commit comments