Which method writes a DataFrame to a CSV file?
-
A
save_csv()
-
B
export_csv()
-
C
to_csv()
Correct answer
-
D
write_csv()
Correct answer
C. to_csv()
14 views
Explanation
to_csv() serialises the DataFrame to a comma-separated file.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ