diff options
author | Jason Thai <jasonnthaii@gmail.com> | 2022-05-28 13:06:10 -0700 |
---|---|---|
committer | Jason Thai <jasonnthaii@gmail.com> | 2022-05-28 13:06:10 -0700 |
commit | 345ced482bac1c974d6bc8b70b101293d76a16e1 (patch) | |
tree | 4d8141729d51cef2558b69f46eceffa0381df830 /numpy/lib/arraysetops.py | |
parent | 6a567fce2d3ef5aa1f325e7efae15b315537a06e (diff) | |
download | numpy-345ced482bac1c974d6bc8b70b101293d76a16e1.tar.gz |
DOC: Added releasenote for 21623
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r-- | numpy/lib/arraysetops.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 490ff6a87..28aede464 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -162,7 +162,7 @@ def unique(ar, return_index=False, return_inverse=False, return_counts : bool, optional If True, also return the number of times each unique item appears in `ar`. - equals_nan : bool, optional + equal_nans : bool, optional If True, collapses multiple NaN values in return array into 1 .. versionchanged: NumPy 1.24 @@ -272,7 +272,7 @@ def unique(ar, return_index=False, return_inverse=False, ar = np.asanyarray(ar) if axis is None: ret = _unique1d(ar, return_index, return_inverse, return_counts, - equal_nans) + equal_nans = equal_nans) return _unpack_tuple(ret) # axis was specified and not None @@ -315,13 +315,13 @@ def unique(ar, return_index=False, return_inverse=False, return uniq output = _unique1d(consolidated, return_index, - return_inverse, return_counts, equal_nans) + return_inverse, return_counts, equal_nans = equal_nans) output = (reshape_uniq(output[0]),) + output[1:] return _unpack_tuple(output) def _unique1d(ar, return_index=False, return_inverse=False, - return_counts=False, equal_nans=True): + return_counts=False, *, equal_nans=True): """ Find the unique elements of an array, ignoring shape. """ |