DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK · Question #157
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.d
Sign in or unlock DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK to reveal the answer and full explanation for question #157. The question stem and answer options stay visible for context.
Question
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 "))
Options
- AThe describe() operation doesn't compute summary statistics for a single column - the summary()
- BThe column sqft should be subsetted from DataFrame storesDF prior to computing summary
- CThe describe() operation does not accept a Column object as an argument outside of a list - the list
- DThe describe() operation does not accept a Column object as an argument - the column name
- EThe describe() operation doesn't compute summary statistics for numeric columns - the sumwary()
Unlock DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK to see the answer
You've previewed enough free DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK questions. Unlock DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.