summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorSamuel Jackson <samueljackson@outlook.com>2018-01-17 09:46:58 +0000
committerSamuel Jackson <samueljackson@outlook.com>2018-01-17 09:46:58 +0000
commitdcd1f1b7c4cdb88baf11b483ecb37e923349b680 (patch)
treec972a57352650c0301c67525aa8a611023826995 /numpy/lib/arraysetops.py
parentb83e9629dc09e3487a6e3f8ba9eeb3288f6add9b (diff)
downloadnumpy-dcd1f1b7c4cdb88baf11b483ecb37e923349b680.tar.gz
DOC: Fix version added labels in numpy.unique
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