8000 Merge pull request #5619 from jaimefrio/unique_docstring · numpy/numpy@d685309 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d685309

Browse files
committed
Merge pull request #5619 from jaimefrio/unique_docstring
DOC: Describe return_counts keyword in np.unique docstring
2 parents bf6f80d + da3c6a2 commit d685309

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)
0