Articles → Numpy → isnan function in numpy

isnan function in numpy






Purpose





Example


import numpy as np

print("Is 1 nan:", np.isnan(1))
print("Is 0 nan:", np.isnan(0))
print("Is np.nan nan:", np.isnan(np.nan))
print("Is -np.nan nan:", np.isnan(-np.nan))



Output



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Saturday, June 01, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250