diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2019-07-26 07:33:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-26 07:33:06 -0500 |
| commit | 7383e5656307485fdfccd1d7e8d868f7a6eb8c70 (patch) | |
| tree | 5f365aae11fec0c9cf6ed2542fa7d12365b2d4ca /numpy | |
| parent | a3a0e6d03e02827e91d092623fdb8a2cb5947098 (diff) | |
| parent | 3a83a9e32adcc44145bacbefeacd18f899267668 (diff) | |
| download | numpy-7383e5656307485fdfccd1d7e8d868f7a6eb8c70.tar.gz | |
Merge pull request #14127 from charris/backport-14085
DOC: Add blank line above doctest for intersect1d
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/lib/arraysetops.py | 1 |
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) |
