diff options
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index a3b00925f..ab4dc5681 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -3870,8 +3870,10 @@ add_newdoc('numpy.core.multiarray', 'putmask', If `values` is not the same size as `a` and `mask` then it will repeat. This gives behavior different from ``a[mask] = values``. - Note that the `putmask` functionality is also provided by `copyto`, which - can be significantly faster. Use ``np.copyto(a, values, where=mask)``. + .. note:: The `putmask` functionality is also provided by `copyto`, which + can be significantly faster and in addition is NA-aware + (`preservena` keyword). Replacing `putmask` with + ``np.copyto(a, values, where=mask)`` is recommended. Parameters ---------- |