Is there a way to inject the header array into the header vector in a more efficient way without using any packages such as csv, pandas, etc...?
data = []
b = 1
with open(datafile, "rb") as f:
for line in f:
if b:
header=line.strip('\n').split(',')
b = 0
continue
entries=line.strip('\n').split(',')
data.append(dict(zip(header,entries)))
#print data
return data
pandas; but what's the reason to avoidcsv?