10000 DOC: Describe return_counts keyword in np.unique docstring by jaimefrio · Pull Request #5619 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC: Describe return_counts keyword in np.unique docstring #5619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
7 changes: 4 additions & 3 deletions numpy/lib/arraysetops.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ def unique(ar, return_index=False, return_inverse=False, return_counts=False):
"""
Find the unique elements of an array.

Returns the sorted unique elements of an array. There are two optional
Returns the sorted unique elements of an array. There are three optional
outputs in addition to the unique elements: the indices of the input array
that give the unique values, and the indices of the unique array that
reconstruct the input array.
that give the unique values, the indices of the unique array that
reconstruct the input array, and the number of times each unique value
comes up in the input array.

Parameters
----------
Expand Down
0