#NEWLINE# def choose_header( self , rows ) : #NEWLINE# #INDENT# '\n        Determine which row contains column headers from the provided set.\n        Default is to assume that the first longest row is the header.\n        ' #NEWLINE# header_row = 0 #NEWLINE# field_names = [ ] #NEWLINE# for ( i , row ) in enumerate ( rows ) : #NEWLINE# #INDENT# if ( len ( row ) > len ( field_names ) ) : #NEWLINE# #INDENT# header_row = i #NEWLINE# field_names = row #NEWLINE# #UNINDENT# #UNINDENT# return ( header_row , field_names )