Unexpected behavior when using np.where with multi-dimensional arrays and broadcasting in NumPy 1.24.3
👀 Views: 1
💬 Answers: 1
📅 Created: 2025-06-21
numpy broadcasting np.where
I am trying to use `np.where` to conditionally replace values in a multi-dimensional NumPy array, but I am running into unexpected behavior related to broadcast...