I have a csv file which has 2 rows of data. I have a python list to be written to the next immediate row in the csv file ie row number 3 without altering the contents of the first two rows.
I wrote a code but it is always writing to the first row. Below is my code. Kindly suggest where to specify the row number in the code.
import sys,csv
with open("C:\pavan\pav.csv",'w',newline='') as wr:
lst=[9,10,11,12]
writer = csv.writer(wr, delimiter = ',')
writer.writerows([lst])