1. Home
  2. Data Science
  3. Pandas
  4. Which method writes a DataFrame to a CSV file?

Added 30 Nov -0001

Which method writes a DataFrame to a CSV file?

  1. save_csv()
  2. export_csv()
  3. to_csv() Correct answer
  4. write_csv()

Correct answer

C. to_csv()

14 views

MCQSEXAM

Explanation

to_csv() serialises the DataFrame to a comma-separated file.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Pandas MCQs

Practise all Pandas MCQs

Similar MCQs