From 38fe698843d8d13fcdbcdce13b186aa66623a324 Mon Sep 17 00:00:00 2001 From: Chiara Marmo Date: Mon, 17 Oct 2022 14:52:35 -1000 Subject: Address reviewer comment. --- numpy/ma/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'numpy/ma/core.py') diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 0eca798de..47323fb99 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -2081,12 +2081,14 @@ def masked_equal(x, value, copy=True): """ Mask an array where equal to a given value. + Return a MaskedArray, masked where the data in array `x` are + equal to `value`. The fill_value of the returned MaskedArray + is set to `value`. + This function is a shortcut to ``masked_where``, with `condition` = (x == value). For floating point arrays, consider using ``masked_values(x, value)``. - The fill_value is set to `value`. - See Also -------- masked_where : Mask where a condition is met. -- cgit v1.2.1