In [1]:
import os
import csv
data = csv.reader(open('C:\Users\W540\Documents\GitHub\NightOne\data.csv'))
# Read the column names from the first line of the file
fields = data.next()
for row in data:
item = dict(zip(fields, row))
print item
In [ ]: