diff options
author | K.-Michael Aye <kmichael.aye@gmail.com> | 2013-07-23 18:15:10 -0700 |
---|---|---|
committer | K.-Michael Aye <kmichael.aye@gmail.com> | 2013-07-23 18:15:10 -0700 |
commit | 6352343b8ddbf88e3ebb8bf8b65bd08424ef729b (patch) | |
tree | d1d92909a43ec37f7e6f0ffe4250524ed2abb8ea /numpy/core/fromnumeric.py | |
parent | 9c93f75f02ae5c2c1d9e8a806bcdebc63c6ba98f (diff) | |
download | numpy-6352343b8ddbf88e3ebb8bf8b65bd08424ef729b.tar.gz |
Repaired my misunderstanding and added np.extract
I overlooked that np.compress and ndarray.compress are different things and wrongly assumed that it was a typo. I corrected that and added np.extract for equivalency for 1-D arrays.
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 20e53e918..069a28feb 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -1378,7 +1378,8 @@ def compress(condition, a, axis=None, out=None): See Also -------- take, choose, diag, diagonal, select - ndarray.extract : Equivalent method. + ndarray.compress : Equivalent method in ndarray + np.extract: Equivalent method when working on 1-D arrays numpy.doc.ufuncs : Section "Output arguments" Examples |