[Numpy-discussion] NumPy 1.12.0rc1

2016-12-19 Thread Charles R Harris
Hi All, I am pleased to announce the release of NumPy 1.12.0rc1. This release supports Python 2.7 and 3.4 - 3.6 and is the result of 406 pull requests submitted by 139 contributors and comprises a large number of fixes and improvements. Among the many improvements it is difficult to pick out

Re: [Numpy-discussion] in1d, but preserve shape of ar1

2016-12-19 Thread Stephan Hoyer
I think this is a great idea! I agree that we need a new function. Because the new API is almost strictly superior, we should try to pick a more general name that we can encourage users to switch to from in1d. Pandas calls this method "isin", which I think is a perfectly good name for the

[Numpy-discussion] in1d, but preserve shape of ar1

2016-12-19 Thread Brenton R S Recht
I started an enhancement request in the Github bug tracker at https://github.com/numpy/numpy/issues/8331 , but Jaime Frio recommended I bring it to the mailing list. `in1d` takes two arrays, `ar1` and `ar2`, and returns a 1d array with the same number of elements as `ar1`. The logical extension