CBSE Class 12 Informatics Practices Question 60 of 70

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

Back to all questions
4
Question

Question 4

Write Python statement to export the DataFrame to a CSV file named data.csv stored at D: drive.

Answer
DataFrame.to_csv('D:\\data.csv')