nerdexam
DatabricksDatabricks

DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK · Question #157

DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Question #157: Real Exam Question with Answer & Explanation

The correct answer is D: The describe() operation does not accept a Column object as an argument - the column name. See the full explanation below for the reasoning.

Working with DataFrames

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()

Topics

#PySpark DataFrame API#DataFrame Transformations#Summary Statistics#Column References

Community Discussion

No community discussion yet for this question.

Full DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK PracticeBrowse All DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK Questions