Given a Pandas DataFrame df that includes a column named 'age', you want to select rows where the age is greater than 25. Which of the following code snippets correctly performs this operation?

1
df[df['age'] > 25]
2
df.query('age > 25')
3
df[df.age > 25]
4
All of the above

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation