summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-07-01 23:36:38 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-07-01 23:40:56 -0600
commitf5e9adbbf87903e42d03bb3dd5f86b70a89e930c (patch)
treed35f5116d0ce8c579b583cda4a3ee32c541fb6bd /numpy/lib/arraysetops.py
parentf940a9e434e2ba39328361336711502895a42194 (diff)
downloadnumpy-f5e9adbbf87903e42d03bb3dd5f86b70a89e930c.tar.gz
DOC: Fix docstring warnings in documetation generation.
Most of these fixes involve putting blank lines around .. versionadded:: x.x.x and .. deprecated:: x.x.x Some of the examples were also fixed.
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r--numpy/lib/arraysetops.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py
index 3dd97aecf..17dfa7567 100644
--- a/numpy/lib/arraysetops.py
+++ b/numpy/lib/arraysetops.py
@@ -114,10 +114,11 @@ def unique(ar, return_index=False, return_inverse=False, return_counts=False):
If True, also return the indices of the unique array that can be used
to reconstruct `ar`.
return_counts : bool, optional
- .. versionadded:: 1.9.0
If True, also return the number of times each unique value comes up
in `ar`.
+ .. versionadded:: 1.9.0
+
Returns
-------
unique : ndarray
@@ -129,10 +130,11 @@ def unique(ar, return_index=False, return_inverse=False, return_counts=False):
The indices to reconstruct the (flattened) original array from the
unique array. Only provided if `return_inverse` is True.
unique_counts : ndarray, optional
- .. versionadded:: 1.9.0
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
--------
numpy.lib.arraysetops : Module with a number of other functions for