[SciPy-user] isnotnan
Wes McKinney
wesmckinn at gmail.com
Thu Feb 12 21:45:00 EST 2009
isfinite(x) is faster than -isnan(x), and it also gets INFs, so
definitely the way to go.
On Feb 12, 2009, at 9:38 PM, Bruce Southey wrote:
> Hi,
> Thanks to the Doc Marathon!
>
> Perhaps numpy.isfinite() is what you want:
> http://docs.scipy.org/doc/numpy/reference/generated/
> numpy.isfinite.html
>
> It is even linked from numpy.isnan() page
> http://docs.scipy.org/doc/numpy/reference/generated/numpy.isnan.html
>
> Bruce
>
>
>
> On Thu, Feb 12, 2009 at 5:47 PM, Robert Kern
> <robert.kern at gmail.com> wrote:
>> On Thu, Feb 12, 2009 at 17:06, R. Padraic Springuel
>> <R.Springuel at umit.maine.edu> wrote:
>>> Is there a isnotnan function somewhere in the numpy or scipy
>>> library that
>>> functions similarly to isnan (except that the results are reversed)?
>>
>> ~isnan(x)
>>
>> --
>> Robert Kern
>>
>> "I have come to believe that the whole world is an enigma, a harmless
>> enigma that is made terrible by our own mad attempt to interpret
>> it as
>> though it had an underlying truth."
>> -- Umberto Eco
>> _______________________________________________
>> SciPy-user mailing list
>> SciPy-user at scipy.org
>> http://projects.scipy.org/mailman/listinfo/scipy-user
>>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
More information about the SciPy-User
mailing list