#NEWLINE# def _ixs( self , i , axis = 0 ) : #NEWLINE# #INDENT# '\n        Return the i-th value or values in the Series by location\n\n        Parameters\n        ----------\n        i : int, slice, or sequence of integers\n\n        Returns\n        -------\n        value : scalar (int) or Series (slice, sequence)\n        ' #NEWLINE# try : #NEWLINE# #INDENT# values = self . _values #NEWLINE# if isinstance ( values , np . ndarray ) : #NEWLINE# #INDENT# return _index . get_value_at ( values , i ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return values [ i ] #NEWLINE# #UNINDENT# #UNINDENT# except IndexError : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# if isinstance ( i , slice ) : #NEWLINE# #INDENT# indexer = self . index . _convert_slice_indexer ( i , kind = 'iloc' ) #NEWLINE# return self . _get_values ( indexer ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# label = self . index [ i ] #NEWLINE# if isinstance ( label , Index ) : #NEWLINE# #INDENT# return self . take ( i , axis = axis , convert = True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return _index . get_value_at ( self , i )