File tree 2 files changed +3
-19
lines changed
2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -850,17 +850,7 @@ def asof_join_nearest_on_X_by_Y(ndarray[numeric_t] left_values,
850
850
numeric_t bdiff, fdiff
851
851
852
852
# search both forward and backward
853
- # TODO(cython3):
854
- # Bug in beta1 preventing Cython from choosing
855
- # right specialization when one fused memview is None
856
- # Doesn't matter what type we choose
857
- # (nothing happens anyways since it is None)
858
- # GH 51640
859
- if left_by_values is not None and left_by_values.dtype != object :
860
- by_dtype = f" {left_by_values.dtype}_t"
861
- else :
862
- by_dtype = object
863
- bli, bri = asof_join_backward_on_X_by_Y[f" {left_values.dtype}_t" , by_dtype](
853
+ bli, bri = asof_join_backward_on_X_by_Y(
864
854
left_values,
865
855
right_values,
866
856
left_by_values,
@@ -869,7 +859,7 @@ def asof_join_nearest_on_X_by_Y(ndarray[numeric_t] left_values,
869
859
tolerance,
870
860
use_hashtable
871
861
)
872
- fli, fri = asof_join_forward_on_X_by_Y[f " {left_values.dtype}_t " , by_dtype] (
862
+ fli, fri = asof_join_forward_on_X_by_Y(
873
863
left_values,
874
864
right_values,
875
865
left_by_values,
Original file line number Diff line number Diff line change @@ -2207,13 +2207,7 @@ def injection(obj: ArrayLike):
2207
2207
else :
2208
2208
# choose appropriate function by type
2209
2209
func = _asof_by_function (self .direction )
2210
- # TODO(cython3):
2211
- # Bug in beta1 preventing Cython from choosing
2212
- # right specialization when one fused memview is None
2213
- # Doesn't matter what type we choose
2214
- # (nothing happens anyways since it is None)
2215
- # GH 51640
2216
- return func [f"{ left_values .dtype } _t" , object ](
2210
+ return func (
2217
2211
left_values ,
2218
2212
right_values ,
2219
2213
None ,
You can’t perform that action at this time.
0 commit comments