From dcd1f1b7c4cdb88baf11b483ecb37e923349b680 Mon Sep 17 00:00:00 2001 From: Samuel Jackson Date: Wed, 17 Jan 2018 09:46:58 +0000 Subject: DOC: Fix version added labels in numpy.unique --- numpy/lib/arraysetops.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'numpy/lib/arraysetops.py') 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 -- cgit v1.2.1