The code block shown below contains an error. The code block is intended to return a collection of summary statistics for column sqft in Data Frame storesDF. Identify the error.
Code block:
storesDF.describes(col(“sgft”))
The code block shown below contains an error. The code block is intended to return a collection of summary statistics for column sqft in Data Frame storesDF. Identify the error.
Code block:
storesDF.describes(col(“sgft”))
The error in the code block is that the describe() operation does not accept a Column object as an argument. Instead, you should specify the column name as a string directly. The corrected code should be storesDF.describe('sqft').
E is the right choice.
I think it's E. It should be storesDF.describe("sqft")