8000 Merge pull request #15510 from jontwo/unique-doc-fix · numpy/numpy@b69cf68 · GitHub
[go: up one dir, main page]

Skip to content

Commit b69cf68

Browse files
authored
Merge pull request #15510 from jontwo/unique-doc-fix
DOC: Update unique docstring example
2 parents a9bc5db + 17612fc commit b69cf68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/lib/arraysetops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ def unique(ar, return_index=False, return_inverse=False,
251251
>>> u
252252
array([1, 2, 3, 4, 6])
253253
>>> indices
254-
array([0, 1, 4, ..., 1, 2, 1])
254+
array([0, 1, 4, 3, 1, 2, 1])
255255
>>> u[indices]
256-
array([1, 2, 6, ..., 2, 3, 2])
256+
array([1, 2, 6, 4, 2, 3, 2])
257257
258258
"""
259259
ar = np.asanyarray(ar)

0 commit comments

Comments
 (0)
0