A

Admin • 802.91K Points
Coach

Q. What does `df.query('col > 5')` do?

  • (A) Filters rows where column values are greater than 5
  • (B) Sorts column 'col'
  • (C) Creates a new column
  • (D) Deletes rows with value 5
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
`query()` allows querying the DataFrame using a string expression.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.