
Databricks Certified Associate Developer for Apache Spark
Get started today
Ultimate access to all questions.
The following code block should extract the integer value for column sqft
from the first row of DataFrame storesDF
. Select the answer that correctly fills in the numbered blanks to complete the code.
Code block:
__1__.__2__.__3__[Int](__4__)
The following code block should extract the integer value for column sqft
from the first row of DataFrame storesDF
. Select the answer that correctly fills in the numbered blanks to complete the code.
Code block:
__1__.__2__.__3__[Int](__4__)
Exam-Like
Explanation:
The correct answer is D because it accurately fills in the blanks to form the code storesDF.first.getAs[Int]("sqft")
, which correctly extracts the integer value for the 'sqft' column from the first row of DataFrame storesDF
. The other options either use incorrect syntax or reference the column name improperly.