Q. Which method is used to convert a DataFrame to a CSV file?
β
Correct Answer: (A)
to_csv()
Explanation: to_csv() writes a DataFrame to a CSV file, optionally including the index or header.