[Numpy-discussion] Bug in numpy std, etc. with other data structures?
robert.kern at gmail.com
Sat Sep 17 22:56:25 EDT 2011
On Sat, Sep 17, 2011 at 21:50, Bruce Southey <bsouthey at gmail.com> 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 lists are "array-like" in the terminology of the docstring
standard. Anything that np.asarray() or np.asanyarray() can accept is
"array-like". Please stop making things up and being sanctimonious
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the NumPy-Discussion