[SciPy-User] What "Array" means

Timothy Wu 2huggie@gmail....
Fri Apr 8 05:14:12 CDT 2011


Hi I am trying to run Scipy's D'Agostino's normality test as documented here
http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.mstats.normaltest.html

For the array argument I tried something like this
scipy.array([1,2,3])
or
numpy.array([1,2,3])

and axis ignored.

But with both method the test fails:

File "/usr/lib/python2.6/dist-packages/scipy/stats/mstats_basic.py", line
1546, in kurtosistest
    n = a.count(axis=axis).astype(float)
AttributeError: 'int' object has no attribute 'astype'

I'm not familiar with numpy nor scipy. What exactly should I put in there?

Timothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20110408/3b745d1e/attachment.html 


More information about the SciPy-User mailing list