Re: [Numpy-discussion] quantile() or percentile()

2017-08-10 Thread Juan Nunez-Iglesias
I concur with the consensus. On 10 Aug 2017, 11:10 PM +0200, Eric Wieser , wrote: > Let’s try and keep this on topic - most replies to this message has been > about #9211, which is an orthogonal issue. > There are two main questions here: > > 1. Would the community prefer to use np.quantile(x, 0

Re: [Numpy-discussion] quantile() or percentile()

2017-08-10 Thread Eric Wieser
Let’s try and keep this on topic - most replies to this message has been about #9211, which is an orthogonal issue. There are two main questions here: 1. Would the community prefer to use np.quantile(x, 0.25) instead of np.percentile(x, 25), if they had the choice 2. Is this desirable en

Re: [Numpy-discussion] np.array, copy=False and memmap

2017-08-10 Thread Allan Haldane
On 08/07/2017 05:01 PM, Nisoli Isaia wrote: > Dear all, > I have a question about the behaviour of > > y = np.array(x, copy=False, dtype='float32') > > when x is a memmap. If we check the memmap attribute of mmap > > print "mmap attribute", y._mmap > > numpy tells us that y is not a memmap. > B

Re: [Numpy-discussion] np.array, copy=False and memmap

2017-08-10 Thread Allan Haldane
On 08/10/2017 02:24 PM, Sebastian Berg wrote: > On Thu, 2017-08-10 at 12:27 -0400, Allan Haldane wrote: >> On 08/07/2017 05:01 PM, Nisoli Isaia wrote: >>> Dear all, >>> I have a question about the behaviour of >>> >>> y = np.array(x, copy=False, dtype='float32') >>> >>> when x is a memmap. If we ch

Re: [Numpy-discussion] np.array, copy=False and memmap

2017-08-10 Thread Sebastian Berg
On Thu, 2017-08-10 at 12:27 -0400, Allan Haldane wrote: > On 08/07/2017 05:01 PM, Nisoli Isaia wrote: > > Dear all, > > I have a question about the behaviour of > > > > y = np.array(x, copy=False, dtype='float32') > > > > when x is a memmap. If we check the memmap attribute of mmap > > > > print

Re: [Numpy-discussion] Changing MaskedArray.squeeze() to never return masked

2017-08-10 Thread Benjamin Root
Yes, that is the change I am thinking of. And yes, it hasn't happened yet. But, it has been set to warn for a few years now, and there was a lot of controversy over it when it was first proposed. That said, I do think the way it was handled made sense, and it is a good model to follow for these typ

Re: [Numpy-discussion] Changing MaskedArray.squeeze() to never return masked

2017-08-10 Thread Allan Haldane
On 07/18/2017 09:52 AM, Benjamin Root wrote: > This sort of change seems very similar to the np.diag() change a few years > ago. Are there lessons we could learn from then that we could apply to here? > > Why would the returned view not be a masked array? > > Ben Root I am in favor of the propos

Re: [Numpy-discussion] np.array, copy=False and memmap

2017-08-10 Thread Allan Haldane
On 08/07/2017 05:01 PM, Nisoli Isaia wrote: > Dear all, > I have a question about the behaviour of > > y = np.array(x, copy=False, dtype='float32') > > when x is a memmap. If we check the memmap attribute of mmap > > print "mmap attribute", y._mmap > > numpy tells us that y is not a memmap. > B