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

Certified Associate Developer for Apache Spark Exam - Question 94


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

Show Answer
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

1 comment
Sign in to comment
Sowwy1Option: C
Apr 1, 2024

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