CodexBloom - AI-Powered Q&A Platform

Issues with np.mean on masked arrays leading to unexpected NaN results in NumPy 1.24.3

👀 Views: 0 💬 Answers: 1 📅 Created: 2025-07-15
numpy masked-array nan

I'm facing an issue when working with masked arrays in NumPy 1.24.3. I have a 2D masked array where some values are masked (i.e., not considered in computations...