Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b47a454 commit 75ecfa4Copy full SHA for 75ecfa4
pandas/_libs/index.pyx
@@ -447,7 +447,6 @@ cdef class DatetimeEngine(Int64Engine):
447
conv = maybe_datetimelike_to_i8(val)
448
loc = values.searchsorted(conv, side='left')
449
except TypeError:
450
- self._date_check_type(val)
451
raise KeyError(val)
452
453
if loc == len(values) or values[loc] != conv:
@@ -470,12 +469,6 @@ cdef class DatetimeEngine(Int64Engine):
470
469
val = maybe_datetimelike_to_i8(val)
471
return self.mapping.get_item(val)
472
except (TypeError, ValueError):
473
474
- raise KeyError(val)
475
-
476
- cdef inline _date_check_type(self, object val):
477
- hash(val)
478
- if not util.is_integer_object(val):
479
480
481
def get_indexer(self, values):
0 commit comments