Re: [Numpy-discussion] Finding values in an array

2014-11-28 Thread Julian Taylor
On 28.11.2014 04:15, Alexander Belopolsky wrote: I probably miss something very basic, but how given two arrays a and b, can I find positions in a where elements of b are located? If a were sorted, I could use searchsorted, but I don't want to get valid positions for elements that are not in

Re: [Numpy-discussion] Finding values in an array

2014-11-28 Thread Robert Kern
On Fri, Nov 28, 2014 at 8:22 AM, Julian Taylor jtaylor.deb...@googlemail.com wrote: On 28.11.2014 04:15, Alexander Belopolsky wrote: I probably miss something very basic, but how given two arrays a and b, can I find positions in a where elements of b are located? If a were sorted, I

Re: [Numpy-discussion] Finding values in an array

2014-11-28 Thread Julian Taylor
On 28.11.2014 09:37, Robert Kern wrote: On Fri, Nov 28, 2014 at 8:22 AM, Julian Taylor jtaylor.deb...@googlemail.com mailto:jtaylor.deb...@googlemail.com wrote: On 28.11.2014 04:15, Alexander Belopolsky wrote: I probably miss something very basic, but how given two arrays a and b, can I

Re: [Numpy-discussion] Finding values in an array

2014-11-28 Thread Robert Kern
On Fri, Nov 28, 2014 at 8:40 AM, Julian Taylor jtaylor.deb...@googlemail.com wrote: On 28.11.2014 09:37, Robert Kern wrote: On Fri, Nov 28, 2014 at 8:22 AM, Julian Taylor jtaylor.deb...@googlemail.com mailto:jtaylor.deb...@googlemail.com wrote: On 28.11.2014 04:15, Alexander

[Numpy-discussion] ANN: SfePy 2014.4

2014-11-28 Thread Robert Cimrman
I am pleased to announce release 2014.4 of SfePy. Description --- SfePy (simple finite elements in Python) is a software for solving systems of coupled partial differential equations by the finite element method or by the isogeometric analysis (preliminary support). It is distributed

[Numpy-discussion] Updates on NA / NaN values for Ints?

2014-11-28 Thread Nick Eubank
Hello Numpy! Curious if there were any timelines for when NA / NaN support might arrive for Ints. (I'm sure this is asked and answered many times, but what I can find seems very out of date.) I'm strongly considering migrating from R/Stata/Matlab to Pandas/Numpy, but the inability to handle Na

Re: [Numpy-discussion] Updates on NA / NaN values for Ints?

2014-11-28 Thread Nathaniel Smith
On Fri, Nov 28, 2014 at 9:12 PM, Nick Eubank nickeub...@gmail.com wrote: Hello Numpy! Curious if there were any timelines for when NA / NaN support might arrive for Ints. (I'm sure this is asked and answered many times, but what I can find seems very out of date.) I'm strongly considering

Re: [Numpy-discussion] Finding values in an array

2014-11-28 Thread Nathaniel Smith
On Fri, Nov 28, 2014 at 3:15 AM, Alexander Belopolsky ndar...@mac.com wrote: I probably miss something very basic, but how given two arrays a and b, can I find positions in a where elements of b are located? If a were sorted, I could use searchsorted, but I don't want to get valid positions

Re: [Numpy-discussion] Updates on NA / NaN values for Ints?

2014-11-28 Thread Benjamin Root
That being said, doesn't Pandas support something like what you are asking for? While Pandas would like to push the NA support down into the NumPy level for seamless interaction with other SciPy libraries, it does a very decent job with NA on its own, and depending on the sort of code you need to

Re: [Numpy-discussion] Updates on NA / NaN values for Ints?

2014-11-28 Thread Nathaniel Smith
On Sat, Nov 29, 2014 at 1:51 AM, Benjamin Root ben.r...@ou.edu wrote: That being said, doesn't Pandas support something like what you are asking for? While Pandas would like to push the NA support down into the NumPy level for seamless interaction with other SciPy libraries, it does a very

Re: [Numpy-discussion] Updates on NA / NaN values for Ints?

2014-11-28 Thread Nick Eubank
Thanks Nathaniel and Ben. Nathaniel, I completely understand! Believe me, I appreciate all you folks do already, and am hoping to some day improve my skills enough to contribute myself. Ben: they only handle it for Floats. If you introduce an NA to an int64 series, it just coerces the type into

Re: [Numpy-discussion] Updates on NA / NaN values for Ints?

2014-11-28 Thread Benjamin Root
Ah, I didn't notice the coercion before. Dynnd has been an interesting project for a couple years now, and it is in the right position of being able to develop and experiment with new concepts. I hope they can work out the NA/NaN/mask semantics in a way that is intuitive and can coexist. That was

Re: [Numpy-discussion] Finding values in an array

2014-11-28 Thread Benjamin Root
If we don't have an operation for this in numpy's setops module, it probably should be added. Ben Root On Nov 28, 2014 10:21 PM, Jaime Fernández del Río jaime.f...@gmail.com wrote: On Fri, Nov 28, 2014 at 5:15 PM, Nathaniel Smith n...@pobox.com wrote: On Fri, Nov 28, 2014 at 3:15 AM,