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

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

    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
siva1280Option: E

E is correct