def _maybe_coerce_indexer(self, indexer):
if isinstance(indexer, np.ndarray) and indexer.dtype.kind == '<STR_LIT:i>':<EOL><INDENT>indexer = indexer.astype(self._codes.dtype)<EOL><DEDENT>return indexer<EOL>
return an indexer coerced to the codes dtype