CBSE Class 12 Informatics Practices Question 41 of 70

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

Back to all questions
6
Question

Question 6

In order to read from a MySQL table into a DataFrame, the table must exist.

Answer

True

Reason — In order to read data from a MySQL table into a DataFrame using pandas, the table must exist in the MySQL database. If the table doesn't exist, the read operation will fail because there would be no data to retrieve.