Skip to content

Commit d747141

Browse files
committed
Update condition
1 parent 3453487 commit d747141

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/indexes/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3676,9 +3676,7 @@ def get_indexer(
36763676

36773677
from pandas.api.types import is_timedelta64_dtype
36783678

3679-
if (self.dtype == "string[pyarrow]" and is_timedelta64_dtype(target.dtype)) or (
3680-
target.dtype == "string[pyarrow]" and is_timedelta64_dtype(self.dtype)
3681-
):
3679+
if target.dtype == "string[pyarrow]" and is_timedelta64_dtype(self.dtype):
36823680
from pandas.core.arrays.timedeltas import sequence_to_td64ns
36833681

36843682
data, freq = sequence_to_td64ns(target, copy=False, unit=None)

0 commit comments

Comments
 (0)