The code block shown below contains an error. The code block is intended to print the schema of DataFrame storesDF. Identify the error.
Code block:
storesDF.printSchema
The code block shown below contains an error. The code block is intended to print the schema of DataFrame storesDF. Identify the error.
Code block:
storesDF.printSchema
The printSchema member of DataFrame is a method and needs to be followed by parentheses to indicate that it's a method call. Therefore, the correct code block should be storesDF.printSchema().
E. The printSchema member of DataFrame is an operation and needs to be followed by parentheses. The correct code block should be storesDF.printSchema() with parentheses to indicate that it's a method call.