diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-05-05 21:16:13 +0200 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-07-07 14:48:49 +0200 |
commit | 2c9981b61ca56b41a5e7b9fbe785b6b54727aea4 (patch) | |
tree | 30f093eeef4682ef9eadddfe98e3c4ef5280a244 /numpy/lib/function_base.py | |
parent | 3445712afcd71d2a3d61973de45aa94c38613dd5 (diff) | |
download | numpy-2c9981b61ca56b41a5e7b9fbe785b6b54727aea4.tar.gz |
DOC: merge wiki edits. Add percentile to statistics routines (ML suggestion).
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index f3df3b96b..6a457010b 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1316,9 +1316,10 @@ def place(arr, mask, vals): """ Change elements of an array based on conditional and input values. - Similar to ``np.copyto(arr, vals, where=mask)``, the difference is that `place` - uses the first N elements of `vals`, where N is the number of True values - in `mask`, while `copyto` uses the elements where `mask` is True. + Similar to ``np.copyto(arr, vals, where=mask)``, the difference is that + `place` uses the first N elements of `vals`, where N is the number of + True values in `mask`, while `copyto` uses the elements where `mask` + is True. Note that `extract` does the exact opposite of `place`. |