S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to convert a DataFrame to a CSV file?

  • (A) to_csv()
  • (B) write_csv()
  • (C) save_csv()
  • (D) export_csv()
  • Correct Answer - Option(A)
  • Views: 1
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
to_csv() writes a DataFrame to a CSV file, optionally including the index or header.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.