with open(csvfile, 'w') as output:
    writer = csv.writer(output, lineterminator='\n')
for line in res:
    date = line['date']
value = line['v']
writer.writerow([date, value])
Сохранение списка zip в csv в Python