Re: [Numpy-discussion] Bug in numpy std, etc. with other data structures?

2011-09-17 Thread Robert Kern
On Sat, Sep 17, 2011 at 22:11, Bruce Southey wrote: > On Sat, Sep 17, 2011 at 10:00 PM, Wes McKinney wrote: >> On Sat, Sep 17, 2011 at 10:50 PM, Bruce Southey wrote: >>> On Sat, Sep 17, 2011 at 4:12 PM, Wes McKinney wrote: On Sat, Sep 17, 2011 at 4:48 PM, Skipper Seabold wrote:

Re: [Numpy-discussion] Bug in numpy std, etc. with other data structures?

2011-09-17 Thread Bruce Southey
On Sat, Sep 17, 2011 at 10:00 PM, Wes McKinney wrote: > On Sat, Sep 17, 2011 at 10:50 PM, Bruce Southey wrote: >> On Sat, Sep 17, 2011 at 4:12 PM, Wes McKinney wrote: >>> On Sat, Sep 17, 2011 at 4:48 PM, Skipper Seabold >>> wrote: Just ran into this. Any objections for having numpy.std an

Re: [Numpy-discussion] Bug in numpy std, etc. with other data structures?

2011-09-17 Thread Wes McKinney
On Sat, Sep 17, 2011 at 10:50 PM, Bruce Southey wrote: > On Sat, Sep 17, 2011 at 4:12 PM, Wes McKinney wrote: >> On Sat, Sep 17, 2011 at 4:48 PM, Skipper Seabold wrote: >>> Just ran into this. Any objections for having numpy.std and other >>> functions in core/fromnumeric.py call asanyarray befo

Re: [Numpy-discussion] Bug in numpy std, etc. with other data structures?

2011-09-17 Thread Robert Kern
On Sat, Sep 17, 2011 at 21:50, Bruce Southey wrote: > numpy.std()  does accepts array-like which obvious means that > np.std([1,2,3,5]) works making asanyarray call a total waste of cpu > time. Clearly pandas is not array-like input (as Wes points out below) > so an error is correct. No. Even li

Re: [Numpy-discussion] Bug in numpy std, etc. with other data structures?

2011-09-17 Thread Bruce Southey
On Sat, Sep 17, 2011 at 4:12 PM, Wes McKinney wrote: > On Sat, Sep 17, 2011 at 4:48 PM, Skipper Seabold wrote: >> Just ran into this. Any objections for having numpy.std and other >> functions in core/fromnumeric.py call asanyarray before trying to use >> the array's method? Other data structures

Re: [Numpy-discussion] Bug in numpy std, etc. with other data structures?

2011-09-17 Thread Wes McKinney
On Sat, Sep 17, 2011 at 8:36 PM, wrote: > On Sat, Sep 17, 2011 at 5:12 PM, Wes McKinney wrote: >> On Sat, Sep 17, 2011 at 4:48 PM, Skipper Seabold wrote: >>> Just ran into this. Any objections for having numpy.std and other >>> functions in core/fromnumeric.py call asanyarray before trying to u

Re: [Numpy-discussion] Bug in numpy std, etc. with other data structures?

2011-09-17 Thread josef . pktd
On Sat, Sep 17, 2011 at 5:12 PM, Wes McKinney wrote: > On Sat, Sep 17, 2011 at 4:48 PM, Skipper Seabold wrote: >> Just ran into this. Any objections for having numpy.std and other >> functions in core/fromnumeric.py call asanyarray before trying to use >> the array's method? Other data structures

Re: [Numpy-discussion] lstsq: masked arrays, weights, scaling, and covariance

2011-09-17 Thread Travis Oliphant
I think this sounds like a great idea. The lowest level that makes sense is the correct place for them. -Travis On Sep 17, 2011, at 1:52 PM, Charles R Harris wrote: > Hi All, > > I'd like to start a discussion about modifications to lstsq to accommodate > the new masked arrays and move

Re: [Numpy-discussion] Bug in numpy std, etc. with other data structures?

2011-09-17 Thread Wes McKinney
On Sat, Sep 17, 2011 at 4:48 PM, Skipper Seabold wrote: > Just ran into this. Any objections for having numpy.std and other > functions in core/fromnumeric.py call asanyarray before trying to use > the array's method? Other data structures like pandas and larry define > their own std method, for i

[Numpy-discussion] Bug in numpy std, etc. with other data structures?

2011-09-17 Thread Skipper Seabold
Just ran into this. Any objections for having numpy.std and other functions in core/fromnumeric.py call asanyarray before trying to use the array's method? Other data structures like pandas and larry define their own std method, for instance, and this doesn't allow them to pass through. I'm incline

Re: [Numpy-discussion] lstsq: masked arrays, weights, scaling, and covariance

2011-09-17 Thread Charles R Harris
On Sat, Sep 17, 2011 at 1:40 PM, wrote: > On Sat, Sep 17, 2011 at 2:52 PM, Charles R Harris > wrote: > > Hi All, > > > > I'd like to start a discussion about modifications to lstsq to > accommodate > > the new masked arrays and move weights, scaling, and covariance > > determination down to a lo

Re: [Numpy-discussion] lstsq: masked arrays, weights, scaling, and covariance

2011-09-17 Thread josef . pktd
On Sat, Sep 17, 2011 at 2:52 PM, Charles R Harris wrote: > Hi All, > > I'd like to start a discussion about modifications to lstsq to accommodate > the new masked arrays and move weights, scaling, and covariance > determination down to a lower common level. This is motivated by Travis' > recent ch

Re: [Numpy-discussion] Polynomial implementation in numpy.ma

2011-09-17 Thread Charles R Harris
2011/9/17 Stéfan van der Walt > On Sat, Sep 17, 2011 at 9:40 AM, Charles R Harris > wrote: > > The Vandermonde matrix needs to be used for the fitting so nothing should > be > > changed there. > > I remember now where I heard this: > > http://people.maths.ox.ac.uk/trefethen/mythstalk.pdf > > Spe

Re: [Numpy-discussion] Polynomial implementation in numpy.ma

2011-09-17 Thread Stéfan van der Walt
On Sat, Sep 17, 2011 at 9:40 AM, Charles R Harris wrote: > The Vandermonde matrix needs to be used for the fitting so nothing should be > changed there. I remember now where I heard this: http://people.maths.ox.ac.uk/trefethen/mythstalk.pdf Specifically, the statement: "Some well-known algorith

[Numpy-discussion] lstsq: masked arrays, weights, scaling, and covariance

2011-09-17 Thread Charles R Harris
Hi All, I'd like to start a discussion about modifications to lstsq to accommodate the new masked arrays and move weights, scaling, and covariance determination down to a lower common level. This is motivated by Travis' recent changes to polyfit as well as my own various polynomial fits that also

Re: [Numpy-discussion] Polynomial implementation in numpy.ma

2011-09-17 Thread Charles R Harris
On Sat, Sep 17, 2011 at 10:40 AM, Charles R Harris < charlesr.har...@gmail.com> wrote: > > > 2011/9/14 Stéfan van der Walt > >> Hi all, >> >> There were some failures in the polynomial tests earlier today, and >> while investigating I saw that numpy.ma implements its own root >> finder. It uses

Re: [Numpy-discussion] Polynomial implementation in numpy.ma

2011-09-17 Thread Charles R Harris
2011/9/14 Stéfan van der Walt > Hi all, > > There were some failures in the polynomial tests earlier today, and > while investigating I saw that numpy.ma implements its own root > finder. It uses inversion of a Van der Monde matrix, which I believe > may suffer from some numerical instability pr

Re: [Numpy-discussion] [ANN] glumpy 0.2.0

2011-09-17 Thread Nicolas Rougier
Thanks. I just uploaded it to pypi. Nicolas On Sep 16, 2011, at 22:21 , Samuel John wrote: > Hi Nicolas, > > that looks great. > Could you make this available such that `pip install glumpy` would work? > > cheers, > Samuel > > ___ > NumPy-Discussi