[Numpy-discussion] How do I test if an array contains NaN ?

belinda thom bthom at cs.hmc.edu
Thu Jan 11 22:07:13 EST 2007


> It's probably worth mentioning that IPython has (thanks to a user
> contributed implementation) search capabilities besides tab completion
> (which requires you to at least know the start of the string you
> want):
>
> In [3]: N.*nan*?
> N.isnan
> N.nan
> N.nan_to_num
> N.nanargmax
> N.nanargmin
> N.nanmax
> N.nanmin
> N.nansum

this thing can be used even more slickly:

N.[a-z]*? prints only the "non private" stuff.

i'm starting to find this greatly speeds up my development cycle.

--b



More information about the NumPy-Discussion mailing list