summaryrefslogtreecommitdiff
path: root/numpy/add_newdocs.py
diff options
context:
space:
mode:
authorB R S Recht <brsr@users.noreply.github.com>2017-05-04 20:03:09 -0400
committerEric Wieser <wieser.eric@gmail.com>2017-05-05 01:03:09 +0100
commit69b0c42bca27dd5d5522de306bcd7db7deccbfad (patch)
treeb857fc11775a3633bf959a158f5d6be3e7ef7971 /numpy/add_newdocs.py
parent1d592c12ca7f9c7f471aa8d20b538c5cb4f2cdce (diff)
downloadnumpy-69b0c42bca27dd5d5522de306bcd7db7deccbfad.tar.gz
ENH: Add isin, genereralizing in1d to ND arrays (#8423)
This fixes gh-8331 Also update the docs for arraysetops to remove the outdated "1D" from the description, which was already incorrect for np.unique.
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r--numpy/add_newdocs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index 6e859bd90..df79ae136 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -1500,7 +1500,7 @@ add_newdoc('numpy.core.multiarray', 'where',
Find the indices of elements of `x` that are in `goodvalues`.
>>> goodvalues = [3, 4, 7]
- >>> ix = np.in1d(x.ravel(), goodvalues).reshape(x.shape)
+ >>> ix = np.isin(x, goodvalues)
>>> ix
array([[False, False, False],
[ True, True, False],