CBSE Class 12 Informatics Practices Question 11 of 70

Importing/Exporting Data between CSV Files/MySQL and Pandas — Question 6

Back to all questions
6
Question

Question 6

Which additional argument would you give to append the data of a DataFrame in an existing SQL table ?

Answer

The if_exists = 'append' argument in the to_sql() function of pandas is used to append the data of a DataFrame into the existing SQL table.