Skip to content

Commit 24e6811

Browse files
authored
Merge pull request numpy#26629 from luxedo/DOC/21351/np/unique_all
DOC: add `unique_all` example
2 parents 570e5cb + 10ca3c0 commit 24e6811

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

numpy/lib/_arraysetops_impl.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,14 @@ def unique_all(x):
433433
--------
434434
unique : Find the unique elements of an array.
435435
436+
Examples
437+
--------
438+
>>> np.unique_all([1, 1, 2])
439+
UniqueAllResult(values=array([1, 2]),
440+
indices=array([0, 2]),
441+
inverse_indices=array([0, 0, 1]),
442+
counts=array([2, 1]))
443+
436444
"""
437445
result = unique(
438446
x,

0 commit comments

Comments
 (0)