mstats.kurtosistest is incorrectly converting to float, and fails to run (Trac #1769) #2288
Labels
defect
A clear bug or issue that prevents SciPy from being installed or used as expected
good first issue
Good topic for first contributor pull requests, with a relatively straightforward solution
Migrated from Trac
scipy.stats
Milestone
Original ticket http://projects.scipy.org/scipy/ticket/1769 on 2012-11-05 by trac user natelust, assigned to unknown.
When using mstats.kurtosistest the following error is generated:
AttributeError: 'int' object has no attribute 'astype'
because of line 1628 n = a.count(axis=axis).astype(float)
This makes perfect sense as a would be an int, which has no astype method.
Suggest changing to:
n = np.float(a.count(axis=axis)
or the like
The text was updated successfully, but these errors were encountered: