diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index c7a938dbc4449..ae58e9b52012e 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1490,6 +1490,11 @@ def _convert_to_indexer(self, key, axis: AxisInt): # if we are a label return me try: + import pandas as pd + try: + key = pd.Timestamp(key) + except: + pass return labels.get_loc(key) except LookupError: if isinstance(key, tuple) and isinstance(labels, MultiIndex):