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

belinda thom bthom at cs.hmc.edu
Thu Jan 11 21:07:13 CST 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