input.csv
1,2,text, date, qwertyuiopasdfghjklñzxcvbnm, yhnujmik,2121212121
import csv
reader = csv.reader(open('input.csv', 'rb'), delimiter=',',quoting=csv.QUOTE_NONNUMERIC))
csv_out = csv.writer(open('output.csv', 'w'))
for row in reader:
content = row[0] + row[4] + row[5] + row[11] + row[12] + row[13] + row[16] + row[17] + row[22]
csv_out.writerow( content )
# I want it to save the file in csv format as: 1,2,yhnujmik,2121212121
however the code is generating this: 1,2,y,h,n,u,j,m,i,k,2,1,2,1,2,1,2,1,2,1
I've tried with different text delimiters, but doesnt seem to be the problem
any advice?
thanks guys!