def _ixs(self, i, axis=<NUM_LIT:0>):
try:<EOL><INDENT>values = self._values<EOL>if isinstance(values, np.ndarray):<EOL><INDENT>return libindex.get_value_at(values, i)<EOL><DEDENT>else:<EOL><INDENT>return values[i]<EOL><DEDENT><DEDENT>except IndexError:<EOL><INDENT>raise<EOL><DEDENT>except Exception:<EOL><INDENT>if isinstance(i, slice):<EOL><INDENT>indexer = self.index._convert_slice_indexer(i, kind='<STR_LIT>')<EOL>return self._get_values(indexer)<EOL><DEDENT>else:<EOL><INDENT>label = self.index[i]<EOL>if isinstance(label, Index):<EOL><INDENT>return self.take(i, axis=axis, convert=True)<EOL><DEDENT>else:<EOL><INDENT>return libindex.get_value_at(self, i)<EOL><DEDENT><DEDENT><DEDENT>
Return the i-th value or values in the Series by location.

Parameters
----------
i : int, slice, or sequence of integers

Returns
-------
scalar (int) or Series (slice, sequence)