πŸ“Š Pandas
Q. Which method returns the index labels of a Series or DataFrame where values are True?
  • (A) where()
  • (B) mask()
  • (C) idxmax()
  • (D) nonzero()
πŸ’¬ Discuss
βœ… Correct Answer: (A) where()

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
87
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
90%
Success Rate