diff --git a/doc/release/upcoming_changes/22046.change.rst b/doc/release/upcoming_changes/22046.change.rst new file mode 100644 index 000000000000..13a15f9e18cb --- /dev/null +++ b/doc/release/upcoming_changes/22046.change.rst @@ -0,0 +1,7 @@ +``masked_invalid`` now modifies the mask in-place +----------------------------------------------------------------- + +When used with ``copy=False``, `numpy.ma.masked_invalid` now modifies the +input masked array in-place. +This makes it now behave identical to ``masked_where`` and better matches the +documentation.