Re: [Numpy-discussion] Suggestion: special-case np.array(range(...)) to be faster

2016-02-15 Thread Sebastian Berg
On So, 2016-02-14 at 23:41 -0800, Antony Lee wrote: > I wonder whether numpy is using the "old" iteration protocol > (repeatedly calling x[i] for increasing i until StopIteration is > reached?) A quick timing shows that it is indeed slower. > ... actually it's not even clear to me what qualifies a

Re: [Numpy-discussion] Suggestion: special-case np.array(range(...)) to be faster

2016-02-15 Thread Nathaniel Smith
On Sun, Feb 14, 2016 at 11:41 PM, Antony Lee wrote: > I wonder whether numpy is using the "old" iteration protocol (repeatedly > calling x[i] for increasing i until StopIteration is reached?) A quick > timing shows that it is indeed slower. Yeah, I'm pretty sure that np.array doesn't know anythi

Re: [Numpy-discussion] Numexpr-3.0 proposal

2016-02-15 Thread Gregor Thalhammer
> Am 14.02.2016 um 23:19 schrieb Robert McLeod : > > Hello everyone, > > I've done some work on making a new version of Numexpr that would fix some of > the limitations of the original virtual machine with regards to data types > and operation/function count. Basically I re-wrote the Python an

Re: [Numpy-discussion] Suggestion: special-case np.array(range(...)) to be faster

2016-02-15 Thread Antony Lee
Indeed: In [1]: class C: def __getitem__(self, i): if i < 10: return i else: raise IndexError def __len__(self): return 10 ...: In [2]: np.array(C()) Out[2]: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) (omitting __len__ results in the creation of an object array, co

Re: [Numpy-discussion] Suggestion: special-case np.array(range(...)) to be faster

2016-02-15 Thread Jeff Reback
just an FYI. pandas implemented a RangeIndex in upcoming 0.18.0, mainly for memory savings, see here , similar to how python range/xrange work. though there are substantial perf benefits, mainly with set operations, see he

Re: [Numpy-discussion] Suggestion: special-case np.array(range(...)) to be faster

2016-02-15 Thread Robert Kern
On Mon, Feb 15, 2016 at 4:24 PM, Jeff Reback wrote: > > just an FYI. > > pandas implemented a RangeIndex in upcoming 0.18.0, mainly for memory savings, > see here, similar to how python range/xrange work. > > though there are substantial perf benefits, mainly with set operations, see here > though

Re: [Numpy-discussion] Subclassing ma.masked_array, code broken after version 1.9

2016-02-15 Thread Gutenkunst, Ryan N - (rgutenk)
Thank Jonathan, Good to confirm this isn't something inappropriate I'm doing. I give up transparency here in my application, so I'll just work around it. I leave it up to wiser numpy heads as to whether it's worth altering these numpy.ma functions to enable subclassing. Best, Ryan On Feb 13,

Re: [Numpy-discussion] ANN: pandas v0.18.0rc1 - RELEASE CANDIDATE

2016-02-15 Thread Derek Homeier
On 14 Feb 2016, at 1:53 am, Jeff Reback wrote: > > I'm pleased to announce the availability of the first release candidate of > Pandas 0.18.0. > Please try this RC and report any issues here: Pandas Issues > We will be releasing officially in 1-2 weeks or so. > Thanks, looking forward to give t

Re: [Numpy-discussion] ANN: pandas v0.18.0rc1 - RELEASE CANDIDATE

2016-02-15 Thread Jeff Reback
https://github.com/pydata/pandas/releases/tag/v0.18.0rc1 On Mon, Feb 15, 2016 at 12:51 PM, Derek Homeier < de...@astro.physik.uni-goettingen.de> wrote: > On 14 Feb 2016, at 1:53 am, Jeff Reback wrote: > > > > I'm pleased to announce the availability of the first release candidate > of Pandas 0.1

Re: [Numpy-discussion] Subclassing ma.masked_array, code broken after version 1.9

2016-02-15 Thread Sebastian Berg
On Mo, 2016-02-15 at 17:06 +, Gutenkunst, Ryan N - (rgutenk) wrote: > Thank Jonathan, > > Good to confirm this isn't something inappropriate I'm doing. I give > up transparency here in my application, so I'll just work around it. > I leave it up to wiser numpy heads as to whether it's worth al

[Numpy-discussion] DyND 0.7.1 Release

2016-02-15 Thread Irwin Zaid
Hello everyone, I'm pleased to announce the latest 0.7.1 release of DyND. The release notes are at https://github.com/libdynd/libdynd/blob/master/docs/release_notes.txt . Over the last 6 months, DyND has really matured a lot and many features that were "experimental" before are quite usable at th

Re: [Numpy-discussion] ANN: pandas v0.18.0rc1 - RELEASE CANDIDATE

2016-02-15 Thread Derek Homeier
On 15 Feb 2016, at 6:55 pm, Jeff Reback wrote: > > https://github.com/pydata/pandas/releases/tag/v0.18.0rc1 Ah, think I forgot about the ‘releases’ pages. Built on OS X 10.10 + 10.11 with python 2.7.11, 3.4.4 and 3.5.1. 17 errors in the test suite + 1 failure with python2.7 only; I can send you

Re: [Numpy-discussion] [Suggestion] Labelled Array

2016-02-15 Thread Lluís Vilanova
Benjamin Root writes: > Seems like you are talking about xarray: https://github.com/pydata/xarray Oh, I wasn't aware of xarray, but there's also this: https://people.gso.ac.upc.edu/vilanova/doc/sciexp2/user_guide/data.html#basic-indexing https://people.gso.ac.upc.edu/vilanova/doc/sciexp2/u

Re: [Numpy-discussion] [Suggestion] Labelled Array

2016-02-15 Thread Paul Hobson
Just for posterity -- any future readers to this thread who need to do pandas-like on record arrays should look at matplotlib's mlab submodule. I've been in situations (::cough:: Esri production ::cough::) where I've had one hand tied behind my back and unable to install pandas. mlab was a big hel

Re: [Numpy-discussion] NumPy 1.11.0b3 released.

2016-02-15 Thread josef.pktd
On Mon, Feb 15, 2016 at 10:46 PM, wrote: > > > On Fri, Feb 12, 2016 at 4:19 PM, Nathan Goldbaum > wrote: > >> https://github.com/numpy/numpy/blob/master/doc/release/1.11.0-notes.rst >> >> On Fri, Feb 12, 2016 at 3:17 PM, Andreas Mueller >> wrote: >> >>> Hi. >>> Where can I find the changelog? >

Re: [Numpy-discussion] NumPy 1.11.0b3 released.

2016-02-15 Thread Charles R Harris
On Mon, Feb 15, 2016 at 8:50 PM, wrote: > > > On Mon, Feb 15, 2016 at 10:46 PM, wrote: > > >> >> On Fri, Feb 12, 2016 at 4:19 PM, Nathan Goldbaum >> wrote: >> >>> https://github.com/numpy/numpy/blob/master/doc/release/1.11.0-notes.rst >>> >>> On Fri, Feb 12, 2016 at 3:17 PM, Andreas Mueller >>

Re: [Numpy-discussion] Subclassing ma.masked_array, code broken after version 1.9

2016-02-15 Thread Charles R Harris
On Mon, Feb 15, 2016 at 10:06 AM, Gutenkunst, Ryan N - (rgutenk) < rgut...@email.arizona.edu> wrote: > Thank Jonathan, > > Good to confirm this isn't something inappropriate I'm doing. I give up > transparency here in my application, so I'll just work around it. I leave > it up to wiser numpy head

Re: [Numpy-discussion] NumPy 1.11.0b3 released.

2016-02-15 Thread josef.pktd
On Mon, Feb 15, 2016 at 11:05 PM, Charles R Harris < charlesr.har...@gmail.com> wrote: > > > On Mon, Feb 15, 2016 at 8:50 PM, wrote: > >> >> >> On Mon, Feb 15, 2016 at 10:46 PM, wrote: >> >> >>> >>> On Fri, Feb 12, 2016 at 4:19 PM, Nathan Goldbaum >>> wrote: >>> https://github.com/numpy/nu

Re: [Numpy-discussion] NumPy 1.11.0b3 released.

2016-02-15 Thread Charles R Harris
On Mon, Feb 15, 2016 at 9:15 PM, wrote: > > > On Mon, Feb 15, 2016 at 11:05 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Mon, Feb 15, 2016 at 8:50 PM, wrote: >> >>> >>> >>> On Mon, Feb 15, 2016 at 10:46 PM, wrote: >>> >>> On Fri, Feb 12, 2016 at 4:19 PM, Na

Re: [Numpy-discussion] NumPy 1.11.0b3 released.

2016-02-15 Thread josef.pktd
On Mon, Feb 15, 2016 at 11:31 PM, Charles R Harris < charlesr.har...@gmail.com> wrote: > > > On Mon, Feb 15, 2016 at 9:15 PM, wrote: > >> >> >> On Mon, Feb 15, 2016 at 11:05 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> >>> On Mon, Feb 15, 2016 at 8:50 PM, wrote: >>> >>>

Re: [Numpy-discussion] NumPy 1.11.0b3 released.

2016-02-15 Thread josef.pktd
On Tue, Feb 16, 2016 at 12:09 AM, wrote: > > > On Mon, Feb 15, 2016 at 11:31 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Mon, Feb 15, 2016 at 9:15 PM, wrote: >> >>> >>> >>> On Mon, Feb 15, 2016 at 11:05 PM, Charles R Harris < >>> charlesr.har...@gmail.com> wrote: >>>

[Numpy-discussion] cycler v.0.10.0 released

2016-02-15 Thread Thomas Caswell
Folks, I am happy to announce the next release of Cycler. This will become the minimal version for the upcoming mpl v2.0 release. http://matplotlib.org/cycler/ Feature release for `cycler`. This release includes a number of new features: - `Cycler` objecst learned to generate an `itertools.c

[Numpy-discussion] Proposal to add `weights` to `np.percentile` and `np.median`

2016-02-15 Thread Joseph Fox-Rabinovitz
I would like to add a `weights` keyword to `np.partition`, `np.percentile` and `np.median`. My reason for doing so is to to allow `np.histogram` to process automatic bin selection with weights. Currently, weights are not supported for the automatic bin selection and would be difficult to support in