So I have a script that opens and reads a csv file. I'm trying to take what I get from the csv file, do some math, and store the updated values in a dictionary; only I can't get that last step to work.
import csvd = {}reader = csv.reader(open('file.csv', 'rb'))for row in reader: name = row[0] date = row[1] x = row[2] y = row[3] z = x + y
d = { 'Jim': [ {'2008-04-19':17}, {'2008-04-17':15} ], 'Bob': [ {'2008-02-11':18}, {'2008-01-12':22} ]}
4/19/2008 12:59:52 PM
Never mind, apparently update() does the trick.
4/19/2008 3:18:00 PM