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

Certified Associate Developer for Apache Spark 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__)

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

1 comment
Sign in to comment
Sowwy1Option: D
Apr 10, 2024

D. 1. storesDF 2. printSchema 3. Nothing