Hello all!
I have a list of 5 characters
I want to write only certain elements of this list to specific cells in a csv file.
Right now what I am doing is this:
However, this just writes the entire list in column 1. Instead If I want to just write element 2 of the list in column 3 and row 5, how would I do that?
Thank you,
Ron Parker
Ok, I realize this is kind of a silly question because csv files i guess do not technically have cells. However, how would I do this for excel?
I have a list of 5 characters
Code:
>>> li [1,2,3,4,5]
Right now what I am doing is this:
Code:
myFile= open( "FILE.csv", "wb" ) wtr= csv.writer( myFile ) for li in zip(li): dRow=[li] wtr.writerow(dRow) myFile.close()
Thank you,
Ron Parker
Ok, I realize this is kind of a silly question because csv files i guess do not technically have cells. However, how would I do this for excel?
Comment