diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2019-09-13 00:53:41 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2019-09-13 00:53:41 -0700 |
commit | ff11d0127c5906be5bb67ec3fc86e075943124aa (patch) | |
tree | 18e7b06d9b60c9de243f9b89542ea3ec2376b1eb /numpy/lib/arraysetops.py | |
parent | e4878891c848d0b1a46a310fd4a88fd7801b4fab (diff) | |
parent | edf8a5f70bd946135a07bf8b1eada5feddef4b94 (diff) | |
download | numpy-ff11d0127c5906be5bb67ec3fc86e075943124aa.tar.gz |
Merge commit 'edf8a5f' into HEAD
Diffstat (limited to 'numpy/lib/arraysetops.py')
-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) |