Skip to content

Commit cfb0971

Browse files
committed
DOC: add unique_all example
1 parent 7f6ac72 commit cfb0971

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

numpy/lib/_arraysetops_impl.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,15 @@ 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(
440+
values=array([1, 2]),
441+
indices=array([0, 2]),
442+
inverse_indices=array([0, 0, 1]),
443+
counts=array([2, 1]))
444+
436445
"""
437446
result = unique(
438447
x,

0 commit comments

Comments
 (0)