8000 DOC: add `unique_values` example by luxedo · Pull Request #26632 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC: add unique_values example #26632

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

Merged
merged 1 commit into from
Jun 6, 2024
Merged
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
Diff view
DOC: add unique_values example
  • Loading branch information
luxedo committed Jun 6, 2024
commit 556994ddf72b6daae42e46c21e66cd06bbd74690
5 changes: 5 additions & 0 deletions numpy/lib/_arraysetops_impl.py
@@ -560,6 +560,11 @@ def unique_values(x):
Original file line number Diff line number Diff line change
Expand Up
--------
unique : Find the unique elements of an array.

Examples
--------
>>> np.unique_values([1, 1, 2])
array([1, 2])

"""
return unique(
x,
Expand Down
0