CBSE Class 12 Informatics Practices
Question 3 of 70
Importing/Exporting Data between CSV Files/MySQL and Pandas — Question 3
Back to all questions 3
Question Assertion. The read_csv() function reads a csv file's data into a DataFrame.
Reason. The to_csv() function writes a DataFrame on to a csv file.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Both A and R are true but R is not the correct explanation of A.
Explanation
The read_csv() function in Pandas is used to read data from a CSV file into a DataFrame. Conversely, the to_csv() function is used to write DataFrame data to a CSV file.