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


{'Last': 'Doe', 'First': 'Jill'}
{'Last': 'Doe', 'First': 'Joe'}
{'Last': 'Doe', 'First': 'Justin'}
{'Last': 'Doe', 'First': 'Jane'}
{'Last': 'Doe', 'First': 'John'}

In [ ]: