How To Add A New Row Into A Row Of Data Into A CSV File Using The csv Python3 Module
- Brian Clark

- Sep 22, 2022
- 1 min read
Not that long ago, I was having trouble trying to insert new data from YouTube into a CSV file using python3. Here is the code that helped me finally figure out how to add the data into a CSV file using the a+(append) method.
with open('CiteCSV.csv', 'a+', newline='') as csv_file: #a+ appends the data to a new row at the end of the file each time the code is executed.
With the .csv file open, append the data within the statement.



Comments