Exam Certified Associate Developer for Apache Spark All QuestionsBrowse all questions from this exam
Question 94

Which of the following code blocks writes DataFrame storesDF to file path filePath as CSV?

    Correct Answer: C

    To write a DataFrame to a file path as a CSV, you need to use the write function combined with the csv function, specifying the file path as the argument. The correct code block is storesDF.write.csv(filePath).

Discussion
Sowwy1Option: C

Correct is C. storesDF.write.csv(filePath)