Python write list items to csv -


i have code suppose export list items csv file each row in file contains item in list.

writer = csv.writer(open(path+"output.csv", 'wb')) item in result:      writer.writerow(item) 

the result i'm getting quite strange (example 2 top items in list: 'past due' , 'code'):

p,a,s,t, ,d,u,e c,o,d,e 

the results want simply:

    past due     code 

any ideas ?

csvwriter.writerow(row) 

this write row parameter writer’s file object, formatted according current dialect.

for more info see csvwriter


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -