merge_machine/preprocess_fields_v3.py
def parse_fields_from_CSV(fileName, delimiter):
	''' Takes a CSV filepath and a delimiter as input, returns an instance of the Fields class. '''
	a = list(file_row_iter(fileName, delimiter, path = None))
	return Fields({ Cell(h, h): Field([Cell(a[i][k] if len(a[i]) > k else '', h) for i in range(1, len(a))]) for (k, h) in enumerate(a[0]) },
		len(a) - 1)
 Takes a CSV filepath and a delimiter as input, returns an instance of the Fields class. 
Takes a CSV filepath and a delimiter as input, returns an instance of the Fields class.
Takes a CSV filepath and a delimiter as input returns an instance of the Fields class .
def parse_fields_from_CSV(fileName, delimiter):
	a = list(file_row_iter(fileName, delimiter, path = None))
	return Fields({ Cell(h, h): Field([Cell(a[i][k] if len(a[i]) > k else '', h) for i in range(1, len(a))]) for (k, h) in enumerate(a[0]) },
		len(a) - 1)
def parse_fields_from_CSV ( fileName , delimiter ) : a = list ( file_row_iter ( fileName , delimiter , path = None ) ) return Fields ( { Cell ( h , h ) : Field ( [ Cell ( a [ i ] [ k ] if len ( a [ i ] ) > k else '' , h ) for i in range ( 1 , len ( a ) ) ] ) for ( k , h ) in enumerate ( a [ 0 ] ) } , len ( a ) - 1 )
Takes a CSV filepath and a delimiter as input, returns an instance of the Fields class.
Takes a CSV filepath and a delimiter as input returns an instance of the Fields class .
''' Takes a CSV filepath and a delimiter as input, returns an instance of the Fields class. '''
fileName
delimiter