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

David Cournapeau david@ar.media.kyoto-u.ac...
Thu Jun 12 04:11:30 CDT 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 ?


More information about the SciPy-user mailing list