parameters: (self, indexer)
return_statement: return indexer
docstring: return an indexer coerced to the codes dtype
docstring_summary: return an indexer coerced to the codes dtype
docstring_tokens: return an indexer coerced to the codes dtype
function: def _maybe_coerce_indexer(self, indexer):
          """
          return an indexer coerced to the codes dtype
          """
          if isinstance(indexer, np.ndarray) and indexer.dtype.kind == 'i':
              indexer = indexer.astype(self._codes.dtype)
          return indexer
function_tokens: def _maybe_coerce_indexer ( self , indexer ) : if isinstance ( indexer , np . ndarray ) and indexer . dtype . kind == 'i' : indexer = indexer . astype ( self . _codes . dtype ) return indexer