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

Gael Varoquaux gael.varoquaux at normalesup.org
Thu Jun 4 16:52:00 EDT 2009


On Thu, Jun 04, 2009 at 04:43:39PM -0400, josef.pktd at gmail.com wrote:
> Just using "in" might promise more than it does, eg. it works only for
> one dimensional arrays, maybe "in1d". With "in", 

Then 'in_1d'

> I found arraysetops because of unique1d, but I didn't figure out what
> the subpackage really does, because I was reading "arrayse-tops"
> instead of array-set-ops"

That's why I push people to use more underscores. IMHO PEP8 lacks a push
for underscores.

Gaël



More information about the NumPy-Discussion mailing list