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

Which of the following sets of DataFrame methods will both return a new DataFrame only containing rows that meet a specified logical condition?

    Correct Answer: C

    The DataFrame methods 'filter()' and 'where()' both return a new DataFrame containing only those rows that meet specified logical conditions. 'filter()' is explicitly used for filtering rows based on a given condition, while 'where()' functions similarly by selecting rows that satisfy the given criteria. Neither 'drop()', 'select()', nor any combination of these methods are designed for this purpose.

Discussion
SaiPavan10Option: C

C is the right choice

Sowwy1Option: C

C is correct