I have a CSV file that has white space i.e. blank rows or random new lines as in the example below
header1,data1
header2,data2
header4,data4
header6,data6
The following example below works fine when the CSV has no white space, but is there a way to load a CSV by column with white space?
import csv
file = csv.reader(open('file.csv'))
blob = zip(*file)
[]