summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorAllen Downey <downey@allendowney.com>2020-07-03 09:49:57 -0400
committerGitHub <noreply@github.com>2020-07-03 09:49:57 -0400
commitd17ccc8520d5d249bb88566e15c6ac079f192c45 (patch)
treef31014528ad0b0ab1f5fcad5909d4759174b08bf /numpy/core/fromnumeric.py
parent9298eeb4f6c73ca1259f627860abe98b63f89da4 (diff)
downloadnumpy-d17ccc8520d5d249bb88566e15c6ac079f192c45.tar.gz
Update fromnumeric.py
I suggest adding `unique` to the "See also" section of `repeat` (and vice versa) since each is the inverse of the other.
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index a9f3f1069..f8c11c015 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -459,7 +459,8 @@ def repeat(a, repeats, axis=None):
See Also
--------
tile : Tile an array.
-
+ unique : Find the unique elements of an array.
+
Examples
--------
>>> np.repeat(3, 4)