I have a csv file that contains five columns:
a1 b1 c1 d1 e1
a2 b2 c2 d2 e2
a3 b3 c3 d3 e3
And I have some lists that I want to add to this csv (each list as a new column), so the end result would look something like this:
a1 b1 c1 d1 e1 f1 g1 h1
a2 b2 c2 d2 e2 f2 g2 h2
a3 b3 c3 d3 e3 f3 g3 h3
I can save these lists as a new csv
outputdata=zip(list1,list2,list3,list4)
writer=CsvUnicodeWriter(open("myoutput.csv","wb"))
writer.writerows(output data)
But this is not exactly what I need. Thanks in advance.