#NEWLINE# def _clean_col( self , col ) : #NEWLINE# #INDENT# 'Prepares the given column for insert/append.' #NEWLINE# col = list ( col ) #NEWLINE# if self . headers : #NEWLINE# #INDENT# header = [ col . pop ( 0 ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# header = [ ] #NEWLINE# #UNINDENT# if ( ( len ( header ) == 1 ) and hasattr ( col [ 0 ] , '__call__' ) ) : #NEWLINE# #INDENT# col = list ( map ( col [ 0 ] , self . _data ) ) #NEWLINE# #UNINDENT# col = tuple ( ( header + col ) ) #NEWLINE# return col