diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-10-17 15:49:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 15:49:18 -0500 |
commit | 25a37a9c0a9b2cf0de0b221c53da92a8d34e92d5 (patch) | |
tree | 1ac045994272d12a6acb412615b6608901ddd3a6 /numpy/lib/arraysetops.py | |
parent | f85c71a6d16ab64695f07fde23e2c19104d36208 (diff) | |
parent | 2ddba2a474a673131c67d011cfcb76a47b869072 (diff) | |
download | numpy-25a37a9c0a9b2cf0de0b221c53da92a8d34e92d5.tar.gz |
Merge pull request #12153 from tylerjereddy/setdiff1d_test_cov
DOC, TST: cover setdiff1d assume_unique
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r-- | numpy/lib/arraysetops.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 2f8c07114..ec62cd7a6 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -738,7 +738,7 @@ def setdiff1d(ar1, ar2, assume_unique=False): """ Find the set difference of two arrays. - Return the sorted, unique values in `ar1` that are not in `ar2`. + Return the unique values in `ar1` that are not in `ar2`. Parameters ---------- @@ -753,7 +753,9 @@ def setdiff1d(ar1, ar2, assume_unique=False): Returns ------- setdiff1d : ndarray - Sorted 1D array of values in `ar1` that are not in `ar2`. + 1D array of values in `ar1` that are not in `ar2`. The result + is sorted when `assume_unique=False`, but otherwise only sorted + if the input is sorted. See Also -------- |