[SciPy-user] skew and kurtosis return different types

John Hunter jdh2358@gmail....
Wed Oct 10 12:12:17 CDT 2007


Is it right and good that the skew and kurtosis functions in
scipy.stats return different types?  It seems that both should return
float


In [68]: import numpy; print numpy.__version__
1.0.4.dev4154

In [69]: import scipy; print scipy.__version__
0.7.0.dev3412

In [74]: import scipy.stats

In [75]: a = numpy.arange(100)

In [76]: print "skew return type=%s" % type(scipy.stats.skew(a))
skew return type=<type 'numpy.ndarray'>

In [77]: print "kurtosis return type=%s" % type(scipy.stats.kurtosis(a))
kurtosis return type=<type 'numpy.float64'>


More information about the SciPy-user mailing list