Certified Associate Developer for Apache Spark Exam QuestionsBrowse all questions from this exam

Certified Associate Developer for Apache Spark Exam - Question 139


Which of the following code blocks extracts the value for column sqft from the first row of DataFrame storesDF?

Show Answer
Correct Answer: E

To extract the value for column sqft from the first row of DataFrame storesDF, you use the first() method to get the first row and then access the sqft attribute directly. The correct syntax for this operation is storesDF.first().sqft.

Discussion

1 comment
Sign in to comment
siva1280Option: E
Mar 31, 2024

E is correct