QuestionQ286

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

The code block below contains an error. The code is intended to print the schema of DataFrame storesDF. Identify the error.

storesDF.printSchema  
Explanation

DataFrame.printSchema is an operation that prints the schema in tree format only when invoked. Calling it requires parentheses: storesDF.printSchema().

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!