File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33from collections import abc
4- import datetime as dt
54from datetime import datetime
65import functools
76from itertools import zip_longest
178177 disallow_ndim_indexing ,
179178 is_valid_positional_slice ,
180179)
181- from pandas .core .indexes .datetimes import DatetimeIndex
182180from pandas .core .indexes .frozen import FrozenList
183181from pandas .core .missing import clean_reindex_fill_method
184182from pandas .core .ops import get_op_result_name
@@ -3670,14 +3668,6 @@ def get_indexer(
36703668 Notice that the return value is an array of locations in ``index``
36713669 and ``x`` is marked by -1, as it is not in ``index``.
36723670 """
3673- if isinstance (self , DatetimeIndex ):
3674- if hasattr (target , "__iter__" ) and not isinstance (target , (str , bytes )):
3675- seq = list (target )
3676- if seq and all (
3677- isinstance (x , dt .date ) and not isinstance (x , dt .datetime )
3678- for x in seq
3679- ):
3680- return np .full (len (seq ), - 1 , dtype = np .intp )
36813671 method = clean_reindex_fill_method (method )
36823672 orig_target = target
36833673 target = self ._maybe_cast_listlike_indexer (target )
You can’t perform that action at this time.
0 commit comments