A

Admin • 802.91K Points
Coach

Q. How to select rows where column 'A' is greater than 10?

  • (A) df['A'] > 10
  • (B) df[df['A'] > 10]
  • (C) df.select('A' > 10)
  • (D) df.where('A' > 10)
  • Correct Answer - Option(B)
  • Views: 4
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
Use boolean indexing: `df[df['A'] > 10]` to filter rows.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.