CodexBloom - AI-Powered Q&A Platform

Unexpected behavior with np.where returning incorrect indices for masked arrays in NumPy 1.24.2

👀 Views: 1 💬 Answers: 1 📅 Created: 2025-06-09
numpy masked-arrays np.where

I'm experiencing unexpected behavior when using `np.where` on masked arrays in NumPy 1.24.2. I have a masked array where certain values are masked, and I want t...