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

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.

Code block:

__1__.__2__(__3__)

    Correct Answer: D

    To print the schema of a DataFrame in PySpark, you use the method printSchema() on the DataFrame object without any arguments. Therefore, the correct code block should be storesDF.printSchema().

Discussion
Sowwy1Option: D

D. 1. storesDF 2. printSchema 3. Nothing