From 2c9981b61ca56b41a5e7b9fbe785b6b54727aea4 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sat, 5 May 2012 21:16:13 +0200 Subject: DOC: merge wiki edits. Add percentile to statistics routines (ML suggestion). --- numpy/lib/function_base.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'numpy/lib/function_base.py') 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`. -- cgit v1.2.1