[SciPy-User] scipy.stats.nanmedian

Keith Goodman kwgoodman@gmail....
Fri Jan 22 15:44:56 CST 2010


On Fri, Jan 22, 2010 at 1:08 PM,  <josef.pktd@gmail.com> wrote:
> .item() returns a python number not a numpy number
>
>>>> np.array([[[1]]]).item().__class__
> <type 'int'>
>>>> np.array([[[1]]]).flat[0].__class__
> <type 'numpy.int32'>

Good catch. Thanks. I'll update my local copy of nanmedian.


More information about the SciPy-User mailing list