@@ -78,7 +78,7 @@ def inner_join(const int64_t[:] left, const int64_t[:] right,
78
78
79
79
@ cython.boundscheck (False )
80
80
def left_outer_join (const int64_t[:] left , const int64_t[:] right ,
81
- Py_ssize_t max_groups , sort = True ):
81
+ Py_ssize_t max_groups , bint sort = True ):
82
82
cdef:
83
83
Py_ssize_t i, j, k, count = 0
84
84
ndarray[int64_t] left_count, right_count, left_sorter, right_sorter
@@ -670,15 +670,15 @@ def asof_join_backward_on_X_by_Y(asof_t[:] left_values,
670
670
cdef:
671
671
Py_ssize_t left_pos, right_pos, left_size, right_size, found_right_pos
672
672
ndarray[int64_t] left_indexer, right_indexer
673
- bint has_tolerance = 0
673
+ bint has_tolerance = False
674
674
asof_t tolerance_ = 0
675
675
asof_t diff = 0
676
676
HashTable hash_table
677
677
by_t by_value
678
678
679
679
# if we are using tolerance, set our objects
680
680
if tolerance is not None :
681
- has_tolerance = 1
681
+ has_tolerance = True
682
682
tolerance_ = tolerance
683
683
684
684
left_size = len (left_values)
@@ -739,15 +739,15 @@ def asof_join_forward_on_X_by_Y(asof_t[:] left_values,
739
739
cdef:
740
740
Py_ssize_t left_pos, right_pos, left_size, right_size, found_right_pos
741
741
ndarray[int64_t] left_indexer, right_indexer
742
- bint has_tolerance = 0
742
+ bint has_tolerance = False
743
743
asof_t tolerance_ = 0
744
744
asof_t diff = 0
745
745
HashTable hash_table
746
746
by_t by_value
747
747
748
748
# if we are using tolerance, set our objects
749
749
if tolerance is not None :
750
- has_tolerance = 1
750
+ has_tolerance = True
751
751
tolerance_ = tolerance
752
752
753
753
left_size = len (left_values)
@@ -802,7 +802,7 @@ def asof_join_nearest_on_X_by_Y(asof_t[:] left_values,
802
802
asof_t[:] right_values ,
803
803
by_t[:] left_by_values ,
804
804
by_t[:] right_by_values ,
805
- bint allow_exact_matches = 1 ,
805
+ bint allow_exact_matches = True ,
806
806
tolerance = None ):
807
807
808
808
cdef:
@@ -853,19 +853,19 @@ def asof_join_nearest_on_X_by_Y(asof_t[:] left_values,
853
853
854
854
def asof_join_backward (asof_t[:] left_values ,
855
855
asof_t[:] right_values ,
856
- bint allow_exact_matches = 1 ,
856
+ bint allow_exact_matches = True ,
857
857
tolerance = None ):
858
858
859
859
cdef:
860
860
Py_ssize_t left_pos, right_pos, left_size, right_size
861
861
ndarray[int64_t] left_indexer, right_indexer
862
- bint has_tolerance = 0
862
+ bint has_tolerance = False
863
863
asof_t tolerance_ = 0
864
864
asof_t diff = 0
865
865
866
866
# if we are using tolerance, set our objects
867
867
if tolerance is not None :
868
- has_tolerance = 1
868
+ has_tolerance = True
869
869
tolerance_ = tolerance
870
870
871
871
left_size = len (left_values)
@@ -906,19 +906,19 @@ def asof_join_backward(asof_t[:] left_values,
906
906
907
907
def asof_join_forward (asof_t[:] left_values ,
908
908
asof_t[:] right_values ,
909
- bint allow_exact_matches = 1 ,
909
+ bint allow_exact_matches = True ,
910
910
tolerance = None ):
911
911
912
912
cdef:
913
913
Py_ssize_t left_pos, right_pos, left_size, right_size
914
914
ndarray[int64_t] left_indexer, right_indexer
915
- bint has_tolerance = 0
915
+ bint has_tolerance = False
916
916
asof_t tolerance_ = 0
917
917
asof_t diff = 0
918
918
919
919
# if we are using tolerance, set our objects
920
920
if tolerance is not None :
921
- has_tolerance = 1
921
+ has_tolerance = True
922
922
tolerance_ = tolerance
923
923
924
924
left_size = len (left_values)
@@ -960,7 +960,7 @@ def asof_join_forward(asof_t[:] left_values,
960
960
961
961
def asof_join_nearest (asof_t[:] left_values ,
962
962
asof_t[:] right_values ,
963
- bint allow_exact_matches = 1 ,
963
+ bint allow_exact_matches = True ,
964
964
tolerance = None ):
965
965
966
966
cdef:
0 commit comments