Reorganize Dictionary
问题 I have a .csv file that I've read into python using csv.dictwriter that looks something like this: [ {'id':'1', 'date':'12312004','var1':'234', 'var2':'456'}, {'id':'1', 'date':'12312005','var1':'200', 'var2':'466'}, {'id':'1', 'date':'12312006','var1':'760', 'var2':'656'}, {'id':'1', 'date':'12312007','var1':'215', 'var2':'256'}, {'id':'2', 'date':'5312006','var1':'234', 'var2':'456'}, {'id':'2', 'date':'5312007','var1':'200', 'var2':'466'}, {'id':'2', 'date':'5312008','var1':'760', 'var2':