summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2018-01-18 09:21:00 +1300
committerGitHub <noreply@github.com>2018-01-18 09:21:00 +1300
commit668511a7e4e64e882cf6cd5ed366448b6c7ca8c3 (patch)
treea4974c160b2577be519af05932587257155568c1 /numpy/lib/arraysetops.py
parente79e4275031a71840d13baeeaeb577a40377a5ba (diff)
parentdcd1f1b7c4cdb88baf11b483ecb37e923349b680 (diff)
downloadnumpy-668511a7e4e64e882cf6cd5ed366448b6c7ca8c3.tar.gz
Merge pull request #10420 from samueljackson92/fix-version-added-numpy-unique
DOC: Fix version added labels in numpy.unique docs
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r--numpy/lib/arraysetops.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py
index a9426cdf3..7e8bf2133 100644
--- a/numpy/lib/arraysetops.py
+++ b/numpy/lib/arraysetops.py
@@ -135,13 +135,16 @@ 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`.
+
.. versionadded:: 1.9.0
+
axis : int or None, optional
The axis to operate on. If None, `ar` will be flattened beforehand.
Otherwise, duplicate items will be removed along the provided axis,
with all the other axes belonging to the each of the unique elements.
Object arrays or structured arrays that contain objects are not
supported if the `axis` kwarg is used.
+
.. versionadded:: 1.13.0
@@ -159,6 +162,7 @@ def unique(ar, return_index=False, return_inverse=False,
unique_counts : ndarray, optional
The number of times each of the unique values comes up in the
original array. Only provided if `return_counts` is True.
+
.. versionadded:: 1.9.0
See Also