8000
np.ma.masked_where(copy=False) fails to modify array in place when there were no masked elements in the array initially #18946
Labels
Milestone
Uh oh!
There was an error while loading. Please reload this page.
ma.masked_where
documentation says that:But it fails to modify the array's mask when the original mask is empty:
Reproducing code example:
It works properly when there are some masked elements in the array already:
Error message:
None.
NumPy/Python version information:
1.20.2 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)]
numpy-1.20.2-cp38-cp38-win_amd64.whl
The text was updated successfully, but these errors were encountered: