File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -3675,12 +3675,12 @@ def get_indexer(
3675
3675
target = self ._maybe_cast_listlike_indexer (target )
3676
3676
3677
3677
from pandas .api .types import is_timedelta64_dtype
3678
- if (
3679
- self .dtype == "string[pyarrow]" and is_timedelta64_dtype (target .dtype )
3680
- ) or (
3678
+
3679
+ if (self .dtype == "string[pyarrow]" and is_timedelta64_dtype (target .dtype )) or (
3681
3680
target .dtype == "string[pyarrow]" and is_timedelta64_dtype (self .dtype )
3682
3681
):
3683
3682
from pandas .core .arrays .timedeltas import sequence_to_td64ns
3683
+
3684
3684
data , freq = sequence_to_td64ns (target , copy = False , unit = None )
3685
3685
target = type (target )(data )
3686
3686
@@ -6283,16 +6283,6 @@ def _find_common_type_compat(self, target) -> DtypeObj:
6283
6283
):
6284
6284
return _dtype_obj
6285
6285
6286
- # from pandas.api.types import is_timedelta64_dtype
6287
- # from pandas.core.arrays.timedeltas import sequence_to_td64ns
6288
-
6289
- # if (
6290
- # self.dtype == "string[pyarrow]" and is_timedelta64_dtype(target_dtype)
6291
- # ) or (
6292
- # target_dtype == "string[pyarrow]" and is_timedelta64_dtype(self.dtype)
6293
- # ):
6294
- # return np.dtype("m8[ns]")
6295
-
6296
6286
dtype = find_result_type (self .dtype , target )
6297
6287
dtype = common_dtype_categorical_compat ([self , target ], dtype )
6298
6288
return dtype
You can’t perform that action at this time.
0 commit comments