summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorJon Morris <jon.morris@jbarisk.com>2020-02-04 22:22:22 +0000
committerJon Morris <jon.morris@jbarisk.com>2020-02-04 22:22:22 +0000
commit17612fc5f7194be946433d0bab6d1a7792e1226e (patch)
tree93072b40ccc05cf57f077f320df7b96af4fffbe7 /numpy/lib/arraysetops.py
parenta9bc5db4671c6c702e3a8a35fbf31b8d3225fad2 (diff)
downloadnumpy-17612fc5f7194be946433d0bab6d1a7792e1226e.tar.gz
Update unique docstring example
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r--numpy/lib/arraysetops.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py
index ad508e85d..0f2d082c5 100644
--- a/numpy/lib/arraysetops.py
+++ b/numpy/lib/arraysetops.py
@@ -251,9 +251,9 @@ def unique(ar, return_index=False, return_inverse=False,
>>> u
array([1, 2, 3, 4, 6])
>>> indices
- array([0, 1, 4, ..., 1, 2, 1])
+ array([0, 1, 4, 3, 1, 2, 1])
>>> u[indices]
- array([1, 2, 6, ..., 2, 3, 2])
+ array([1, 2, 6, 4, 2, 3, 2])
"""
ar = np.asanyarray(ar)