Skip to content

Commit da3c6a2

Browse files
jaimefriojuliantaylor
authored andcommitted
DOC: Describe return_counts keyword in np.unique docstring
1 parent 11dfe93 commit da3c6a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

numpy/lib/arraysetops.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ def unique(ar, return_index=False, return_inverse=False, return_counts=False):
9797
"""
9898
Find the unique elements of an array.
9999
100-
Returns the sorted unique elements of an array. There are two optional
100+
Returns the sorted unique elements of an array. There are three optional
101101
outputs in addition to the unique elements: the indices of the input array
102-
that give the unique values, and the indices of the unique array that
103-
reconstruct the input array.
102+
that give the unique values, the indices of the unique array that
103+
reconstruct the input array, and the number of times each unique value
104+
comes up in the input array.
104105
105106
Parameters
106107
----------

0 commit comments

Comments
 (0)