class_docstr: common ops mixin to support a unified interface datetimelike Index
class_docstr_tok: ["common","ops","mixin","to","support","a","unified","interface","datetimelike","Index"]
docstr: We don't allow integer or float indexing on datetime-like when using
  loc.
  
  Parameters
  ----------
  key : label of the slice bound
  kind : {'ix', 'loc', 'getitem', 'iloc'} or None
code: def _convert_scalar_indexer(self, key, kind=None):
      """
      We don't allow integer or float indexing on datetime-like when using
      loc.
  
      Parameters
      ----------
      key : label of the slice bound
      kind : {'ix', 'loc', 'getitem', 'iloc'} or None
      """
  
      assert kind in ["ix", "loc", "getitem", "iloc", None]
  
      # we don't allow integer/float indexing for loc
      # we don't allow float indexing for ix/getitem
      if is_scalar(key):
          is_int = is_integer(key)
          is_flt = is_float(key)
          if kind in ["loc"] and (is_int or is_flt):
              self._invalid_indexer("index", key)
          elif kind in ["ix", "getitem"] and is_flt:
              self._invalid_indexer("index", key)
  
      return super(DatetimeIndexOpsMixin, self)._convert_scalar_indexer(
          key, kind=kind
      )
  
imports: import operator
  import warnings
  import numpy
  from pandas._libs import NaT, iNaT, lib
  from pandas.compat.numpy import function
  from pandas.errors import AbstractMethodError
  from pandas.util._decorators import Appender, cache_readonly, deprecate_kwarg
  from pandas.core.dtypes.common import ensure_int64, is_dtype_equal, is_float, is_integer, is_list_like, is_period_dtype, is_scalar
  from pandas.core.dtypes.generic import ABCIndex, ABCIndexClass, ABCSeries
  from pandas.core import algorithms, ops
  from pandas.core.accessor import PandasDelegate
  from pandas.core.arrays import ExtensionOpsMixin
  from pandas.core.arrays.datetimelike import DatetimeLikeArrayMixin, _ensure_datetimelike_to_i8
  import pandas.core.indexes.base
  from pandas.core.indexes.base import Index, _index_shared_docs
  from pandas.core.tools.timedeltas import to_timedelta
  import pandas.io.formats.printing
label_desc: Use image node_id 27 for calling the DatetimeIndexOpsMixin obj's underlying member method code with example usage: obj._convert_scalar_indexer(key, kind) and returns: super