def _convert_to_indexer(self, obj, axis=None, is_setter=False):
if axis is None:<EOL><INDENT>axis = self.axis or <NUM_LIT:0><EOL><DEDENT>if isinstance(obj, slice):<EOL><INDENT>return self._convert_slice_indexer(obj, axis)<EOL><DEDENT>elif is_float(obj):<EOL><INDENT>return self._convert_scalar_indexer(obj, axis)<EOL><DEDENT>try:<EOL><INDENT>self._validate_key(obj, axis)<EOL>return obj<EOL><DEDENT>except ValueError:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>".format(types=self._valid_types))<EOL><DEDENT>
much simpler as we only have to deal with our valid types