7 May
2010
7 May
'10
2:10 a.m.
What information exactly is `isnan` supposed to communicate? Put another way, given that it raises NotImplemented for unknown types, and that bool(NotImplemented) is True, is there a reason by it cannot return a Python bool (which seems more useful)? Thanks, Alan Isaac
np.isnan(np.nan) True np.isnan(np.nan) is True False type(np.isnan(np.nan))
np.isnan('') NotImplemented bool(_) True if np.isnan(''): print "Uh oh" ... Uh oh