Which of the following sets of DataFrame methods will both return a new DataFrame only containing rows that meet a specified logical condition?
Which of the following sets of DataFrame methods will both return a new DataFrame only containing rows that meet a specified logical condition?
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.
C is the right choice
C is correct