8000 Merge pull request #8871 from eric-wieser/fix-bad-pr-merge · juliantaylor/numpy@ee6780f · GitHub
[go: up one dir, main page]

Skip to content

Commit ee6780f

Browse files
authored
Merge pull request numpy#8871 from eric-wieser/fix-bad-pr-merge
DOC: Replace line that was errantly removed in numpy#8850
2 parents 77c875f + 58c604c commit ee6780f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numpy/core/fromnumeric.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1514,7 +1514,8 @@ def nonzero(a):
15141514
array([[1, 0, 0],
15151515
[0, 2, 0],
15161516
[1, 1, 0]])
1517-
>>> (array([0, 1, 2, 2], dtype=int64), array([0, 1, 0, 1], dtype=int64))
1517+
>>> np.nonzero(x)
1518+
(array([0, 1, 2, 2], dtype=int64), array([0, 1, 0, 1], dtype=int64))
15181519
15191520
>>> x[np.nonzero(x)]
15201521
array([ 1., 1., 1.])

0 commit comments

Comments
 (0)
0