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__)
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__)
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().
D. 1. storesDF 2. printSchema 3. Nothing