I am writing data from a list to a csv file like this:
def writeToCsv(list, max):
writer = csv.writer(open('file.csv', 'wb'), delimiter=' ')
for x in range(0,max):
writer.writerow(list[x]['year'])
This fills the first column with the years which is great. Now I want to fill the next column with the 'name' in the list. How can I run the above code again but have it fill the next column instead of writing over the first column with the 'name'?