QuestionQ155

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

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

Explanation

PySpark exposes a DataFrameWriter through DataFrame.write, and its csv(path) method saves the DataFrame in CSV format at the specified path.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!