[SciPy-User] scipy.stats.nanmedian

josef.pktd at gmail.com josef.pktd at gmail.com
Thu Jan 21 21:42:14 EST 2010


On Thu, Jan 21, 2010 at 9:28 PM, Keith Goodman <kwgoodman at gmail.com> wrote:
> On Thu, Jan 21, 2010 at 6:15 PM,  <josef.pktd at gmail.com> wrote:
>> Can you open a ticket, so that I don't forget to look at it?
>
> Sure.
>
>> I will need to play with it. There are some things that I don't
>> understand right away.
>> What's the difference between isscalar and ndim=0 ?
>
> A scalar doesn't have a ndim method. But now I see that there is a
> ndim function. I'll use that instead.
>
>> Why do you have the tolist()
>
> That's the only was I was able to figure out how to pull 1.0 out of
> np.array(1.0). Is there a better way?
>
>>> np.array(1.0).tolist()
>   1.0

>>> np.array(1.0)
array(1.0)
>>> np.array(1.0)[()]
1.0

Josef
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>



More information about the SciPy-User mailing list