summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-03-30 14:55:30 +0100
committerEric Wieser <wieser.eric@gmail.com>2017-03-30 14:56:20 +0100
commit58c604c1aa765d37f0d0324efb1852ddf4d9d9ef (patch)
tree45def31c11a8cdc87b5845d7867247b785331b12 /numpy/core/fromnumeric.py
parent77c875f66d2da61da7cecf40ecc8409a02bfc124 (diff)
downloadnumpy-58c604c1aa765d37f0d0324efb1852ddf4d9d9ef.tar.gz
DOC: Replace line that was errantly removed in #8850
Apologies for the bad merge here [ci skip]
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index 973ba7b3a..4309277ad 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -1514,7 +1514,8 @@ def nonzero(a):
array([[1, 0, 0],
[0, 2, 0],
[1, 1, 0]])
- >>> (array([0, 1, 2, 2], dtype=int64), array([0, 1, 0, 1], dtype=int64))
+ >>> np.nonzero(x)
+ (array([0, 1, 2, 2], dtype=int64), array([0, 1, 0, 1], dtype=int64))
>>> x[np.nonzero(x)]
array([ 1., 1., 1.])