#NEWLINE# def _repr_categories_info( self ) : #NEWLINE# #INDENT# ' Returns a string representation of the footer.' #NEWLINE# category_strs = self . _repr_categories ( ) #NEWLINE# dtype = getattr ( self . categories , 'dtype_str' , str ( self . categories . dtype ) ) #NEWLINE# levheader = ( 'Categories (%d, %s): ' % ( len ( self . categories ) , dtype ) ) #NEWLINE# ( width , height ) = get_terminal_size ( ) #NEWLINE# max_width = ( get_option ( 'display.width' ) or width ) #NEWLINE# if com . in_ipython_frontend ( ) : #NEWLINE# #INDENT# max_width = 0 #NEWLINE# #UNINDENT# levstring = '' #NEWLINE# start = True #NEWLINE# cur_col_len = len ( levheader ) #NEWLINE# ( sep_len , sep ) = ( ( 3 , ' < ' ) if self . ordered else ( 2 , ', ' ) ) #NEWLINE# linesep = ( sep . rstrip ( ) + '\n' ) #NEWLINE# for val in category_strs : #NEWLINE# #INDENT# if ( ( max_width != 0 ) and ( ( ( cur_col_len + sep_len ) + len ( val ) ) > max_width ) ) : #NEWLINE# #INDENT# levstring += ( linesep + ( ' ' * ( len ( levheader ) + 1 ) ) ) #NEWLINE# cur_col_len = ( len ( levheader ) + 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not start ) : #NEWLINE# #INDENT# levstring += sep #NEWLINE# cur_col_len += len ( val ) #NEWLINE# #UNINDENT# #UNINDENT# levstring += val #NEWLINE# start = False #NEWLINE# #UNINDENT# return ( ( ( levheader + '[' ) + levstring . replace ( ' < ... < ' , ' ... ' ) ) + ']' )