def _convert_key(self, key, is_setter=False):
<EOL>if is_setter:<EOL><INDENT>return list(key)<EOL><DEDENT>for ax, i in zip(self.obj.axes, key):<EOL><INDENT>if ax.is_integer():<EOL><INDENT>if not is_integer(i):<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if is_integer(i) and not ax.holds_integer():<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT><DEDENT><DEDENT>return key<EOL>
require they keys to be the same type as the index (so we don't
        fallback)