Skip to content

Commit 3fa0096

Browse files
authored
Merge pull request numpy#9902 from DmitriyValetov/patch-1
numpy.nonzero()
2 parents 5ce06aa + 691aa9f commit 3fa0096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/fromnumeric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ def nonzero(a):
15341534
(array([0, 1, 2, 2], dtype=int64), array([0, 1, 0, 1], dtype=int64))
15351535
15361536
>>> x[np.nonzero(x)]
1537-
array([ 1., 1., 1.])
1537+
array([1, 2, 1, 1])
15381538
>>> np.transpose(np.nonzero(x))
15391539
array([[0, 0],
15401540
[1, 1],

0 commit comments

Comments
 (0)