Re: [Numpy-discussion] the mean, var, std of non-arrays

2013-07-19 Thread Yaroslav Halchenko
On Thu, 18 Jul 2013, Charles R Harris wrote: > yeah...  That is how I thought "it is working", but I guess it was left > without asanyarraying for additional flexibility/performance so any > array-like object could be used, not just ndarray derived classes. >Speaking of which,

Re: [Numpy-discussion] the mean, var, std of non-arrays

2013-07-18 Thread Charles R Harris
On Thu, Jul 18, 2013 at 9:24 PM, Yaroslav Halchenko wrote: > > On Thu, 18 Jul 2013, Skipper Seabold wrote: > > > Not sure anyways if my direct numpy.mean application to pandas > DataFrame > > is > > "kosher" -- initially I just assumed that any argument is > asanyarray'ed > > f

Re: [Numpy-discussion] the mean, var, std of non-arrays

2013-07-18 Thread Yaroslav Halchenko
On Thu, 18 Jul 2013, Skipper Seabold wrote: > Not sure anyways if my direct numpy.mean application to pandas DataFrame > is > "kosher" -- initially I just assumed that any argument is asanyarray'ed > first > -- but I think here catching TypeError for those incompatible .m

Re: [Numpy-discussion] the mean, var, std of non-arrays

2013-07-18 Thread Skipper Seabold
On Thu, Jul 18, 2013 at 10:49 PM, Yaroslav Halchenko wrote: > Hi everyone, > > Some of my elderly code stopped working upon upgrades of numpy and > upcoming pandas: https://github.com/pydata/pandas/issues/4290 so I have > looked at the code of > > 2481 def mean(a, axis=None, dtype=None, out=No

[Numpy-discussion] the mean, var, std of non-arrays

2013-07-18 Thread Yaroslav Halchenko
Hi everyone, Some of my elderly code stopped working upon upgrades of numpy and upcoming pandas: https://github.com/pydata/pandas/issues/4290 so I have looked at the code of 2481 def mean(a, axis=None, dtype=None, out=None, keepdims=False): 2482 """ ... 2489 Parameters 249