[Numpy-discussion] extract elements of an array that are contained in another array?

Gael Varoquaux gael.varoquaux at normalesup.org
Thu Jun 4 16:30:19 EDT 2009

On Thu, Jun 04, 2009 at 10:27:11PM +0200, Kim Hansen wrote:
> "in(b)" or "in_iterable(b)" method, such that you could do a.in(b)
> which would return a boolean array of the same shape as a with
> elements true if the equivalent a members were members in the iterable
> b.

That would really by what I would be looking for.


More information about the NumPy-Discussion mailing list