def _ixs(self, i, axis=<NUM_LIT:0>):
ax = self._get_axis(axis)<EOL>key = ax[i]<EOL>if not (isinstance(ax, MultiIndex) and isinstance(key, tuple)):<EOL><INDENT>if is_list_like(key):<EOL><INDENT>indexer = {self._get_axis_name(axis): key}<EOL>return self.reindex(**indexer)<EOL><DEDENT><DEDENT>if axis == <NUM_LIT:0>:<EOL><INDENT>values = self._data.iget(i)<EOL>return self._box_item_values(key, values)<EOL><DEDENT>self._consolidate_inplace()<EOL>new_data = self._data.xs(i, axis=axis, copy=True, takeable=True)<EOL>return self._construct_return_type(new_data)<EOL>
Parameters
----------
i : int, slice, or sequence of integers
axis : int