Answers for "pandas save csv list as columns"

0

pandas save csv list as columns

import csv

rows = zip(list1,list2,list3,list4,list5)

with open(newfilePath, "w") as f:
    writer = csv.writer(f)
    for row in rows:
        writer.writerow(row)
Posted by: Guest on March-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language