#NEWLINE# def _is_valid_integer( self , key , axis ) : #NEWLINE# #INDENT# ax = self . obj . _get_axis ( axis ) #NEWLINE# l = len ( ax ) #NEWLINE# if ( ( key >= l ) or ( key < ( - l ) ) ) : #NEWLINE# #INDENT# raise IndexError ( 'single positional indexer is out-of-bounds' ) #NEWLINE# #UNINDENT# return True