diff options
author | Gregory R. Lee <gregory.lee@cchmc.org> | 2014-09-15 22:33:15 -0400 |
---|---|---|
committer | Gregory R. Lee <gregory.lee@cchmc.org> | 2014-09-15 22:33:15 -0400 |
commit | 5856a12a3aa3f0474bfd5b7c0c24a32b15728580 (patch) | |
tree | 01b35e73b0796f4ae1ef54b9941deb3d049d4739 /numpy/lib/function_base.py | |
parent | 1dc63505cc9fb7fc5a22e600ee324517e75254b4 (diff) | |
download | numpy-5856a12a3aa3f0474bfd5b7c0c24a32b15728580.tar.gz |
DOC: update numpy.extract docstring
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 47be2f12f..8b384bfaa 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1392,6 +1392,8 @@ def extract(condition, arr): This is equivalent to ``np.compress(ravel(condition), ravel(arr))``. If `condition` is boolean ``np.extract`` is equivalent to ``arr[condition]``. + Note that `place` does the exact opposite of `extract`. + Parameters ---------- condition : array_like @@ -1407,7 +1409,7 @@ def extract(condition, arr): See Also -------- - take, put, copyto, compress + take, put, copyto, compress, place Examples -------- |