1import csv
2
3with open('coors.csv', mode='r') as infile:
4 reader = csv.reader(infile)
5 with open('coors_new.csv', mode='w') as outfile:
6 writer = csv.writer(outfile)
7 mydict = {rows[0]:rows[1] for rows in reader}
1mydict = {y[0]: y[1] for y in [x.split(",") for x in open('file.csv').read().split('\n') if x]}