Direction: Choose the correct option
Q1.
How do you filter rows where a column `age` is greater than 30?
Direction: Choose the correct option
Q2.
What does `df[df['name'] == 'Alice']` return?
Direction: Choose the correct option
Q3.
How do you combine multiple conditions with logical AND?
Direction: Choose the correct option
Q4.
What is the output of `df[df['age'].between(18, 30)]`?
Direction: Choose the correct option
Q5.
How do you filter rows where column value is in a list?
Direction: Choose the correct option
Q6.
What does `df.query('age > 30')` do?
Direction: Choose the correct option
Q7.
How do you select rows by index label using `.loc`?
Direction: Choose the correct option
Q8.
What is the result of `df[df['score'].isna()]`?
Direction: Choose the correct option
Q9.
How do you select a subset of columns while filtering rows?
Direction: Choose the correct option
Q10.
What does `df.nlargest(5, 'sales')` return?
