[assessPerformance(row) for row in storesDF.collect()]
[assessPerformance(row) for row in storesDF]
Question 40
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
There is no printSchema member of DataFrame – schema and the print() function should be used instead.
The entire line needs to be a string – it should be wrapped by str().
There is no printSchema member of DataFrame – the getSchema() operation should be used instead.
There is no printSchema member of DataFrame – the schema() operation should be used instead.
The printSchema member of DataFrame is an operation and needs to be followed by parentheses.