S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method returns the index labels of a Series or DataFrame where values are True?

  • (A) where()
  • (B) mask()
  • (C) idxmax()
  • (D) nonzero()
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
The where() method returns elements or indexes where a condition is True, often used with boolean masks.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.