The code block shown below should print the schema of DataFrame storesDF. Choose the response that correctly fills in the numbered blanks within the code block to complete this task.
The correct answer is:
D. 1. storesDF 2. printSchema 3. Nothing
Explanation:
printSchema() is the correct method to print the schema of a DataFrame in PySpark.
This method does not take any arguments (i.e., "Nothing" in this context), so no additional argument is needed.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Souvik_79
1 week, 4 days agoSowwy1
3 months, 3 weeks ago