summaryrefslogtreecommitdiff
path: root/numpy/lib/arraysetops.py
diff options
context:
space:
mode:
authorJackie Leng <Jackie.Leng@nelen-schuurmans.nl>2019-07-23 13:10:49 +0200
committerGitHub <noreply@github.com>2019-07-23 13:10:49 +0200
commit7329c8ceb4eee9a31f35cb50af14c8f4c71639ff (patch)
tree82d8c5ca9bdf504cb724e355a9eff15db7396e62 /numpy/lib/arraysetops.py
parent67940ffec87b75ff72250ae9b2890fac6a134681 (diff)
downloadnumpy-7329c8ceb4eee9a31f35cb50af14c8f4c71639ff.tar.gz
Add blank line above doctest for intersect1d
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r--numpy/lib/arraysetops.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py
index b53d8c03f..f3f4bc17e 100644
--- a/numpy/lib/arraysetops.py
+++ b/numpy/lib/arraysetops.py
@@ -383,6 +383,7 @@ def intersect1d(ar1, ar2, assume_unique=False, return_indices=False):
To return the indices of the values common to the input arrays
along with the intersected values:
+
>>> x = np.array([1, 1, 2, 3, 4])
>>> y = np.array([2, 1, 4, 6])
>>> xy, x_ind, y_ind = np.intersect1d(x, y, return_indices=True)