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] 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