S

Sikhar Chaudhary • 5.88K Points
Tutor III

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: 61
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
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.


Question analytics