My goal is to write a series of lists to a csv, where each list is a column.
This is my code so far:
rows = list(zip(columns['phase'],columns['start_date']))
with open('date_update.csv','w') as f:
writer = csv.writer(f)
for row in rows:
writer.writerows(row);
This is the csv it produces. Both lists are the same length. When I print rows it has an extra '),' at the beginning. But this is not present when you print the two lists (columns['phase'] and columns['start_date']).
Is there something wrong with the zip line? Or am I not writing it to the csv file correctly?