I would like to append the value into csv file. but unable to bring single row. its giving as two rows.
I would need more context but this is generally how you would do it:
import csv # Define the data to be appended as a list new_row = ['value1', 'value2', 'value3'] # Open the CSV file in append mode with open('example.csv', 'a', newline='') as csv_file: # Create a writer object writer = csv.writer(csv_file) # Append the new row to the file writer.writerow(new_row)