How can I extract 2 columns in two python lists out of csv file. I tried everything but I always get errors. I just succeed making rows :
import csv
with open('test-data.csv', newline='') as csvfile:
spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')
for row in spamreader:
print(' '.join(row))