#NEWLINE# def __init__( self , frame , buf = None , columns = None , col_space = None , header = True , index = True , na_rep = 'NaN' , formatters = None , justify = None , float_format = None , sparsify = None , index_names = True , line_width = None , max_rows = None , max_cols = None , show_dimensions = False , decimal = '.' , **kwds ) : #NEWLINE# #INDENT# self . frame = frame #NEWLINE# self . buf = ( _expand_user ( buf ) if ( buf is not None ) else StringIO ( ) ) #NEWLINE# self . show_index_names = index_names #NEWLINE# if ( sparsify is None ) : #NEWLINE# #INDENT# sparsify = get_option ( 'display.multi_sparse' ) #NEWLINE# #UNINDENT# self . sparsify = sparsify #NEWLINE# self . float_format = float_format #NEWLINE# self . formatters = ( formatters if ( formatters is not None ) else { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . na_rep = na_rep #NEWLINE# self . decimal = decimal #NEWLINE# self . col_space = col_space #NEWLINE# self . header = header #NEWLINE# self . index = index #NEWLINE# self . line_width = line_width #NEWLINE# self . max_rows = max_rows #NEWLINE# self . max_cols = max_cols #NEWLINE# self . max_rows_displayed = min ( ( max_rows or len ( self . frame ) ) , len ( self . frame ) ) #NEWLINE# self . show_dimensions = show_dimensions #NEWLINE# if ( justify is None ) : #NEWLINE# #INDENT# self . justify = get_option ( 'display.colheader_justify' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . justify = justify #NEWLINE# #UNINDENT# self . kwds = kwds #NEWLINE# if ( columns is not None ) : #NEWLINE# #INDENT# self . columns = _ensure_index ( columns ) #NEWLINE# self . frame = self . frame [ sparsify . columns ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . columns = frame . columns #NEWLINE# #UNINDENT# self . _chk_truncate ( ) #NEWLINE# self . adj = _get_adjustment ( )