kurtosistest fails in mstats with type error (Trac #1424) #1949

scipy-gitbot opened this Issue Apr 25, 2013 · 5 comments


None yet

3 participants


Original ticket http://projects.scipy.org/scipy/ticket/1424 on 2011-04-12 by @bsouthey, assigned to unknown.

This error was reported on the scipy-user list by Timothy Wu.


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'

Attachment added by @bsouthey on 2011-04-12: kurtosistest.patch


@rgommers wrote on 2011-09-11

See gh-1950.


Milestone changed to Unscheduled by @rgommers on 2011-09-11


Related numpy issue: numpy/numpy#3368

SciPy member

Fixed in gh-3008.

@rgommers rgommers closed this Nov 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment