[SciPy-user] How to get rid of nan and Inf

David Cournapeau david at ar.media.kyoto-u.ac.jp
Thu Jun 12 05:11:30 EDT 2008


Lorenzo Isella wrote:
> but I do not know the command to identify a number vs an Inf or a nan
> (my fictitious is_a_number condition).
>   

What about numpy.isnan and numpy.isfinite ?

David



More information about the SciPy-User mailing list