Articles → Numpy → isfinite function in numpy

isfinite function in numpy






Purpose





Example


import numpy as np


print("Is 1 finite:", np.isfinite(1))
print("Is 0 finite:", np.isfinite(0))
print("Is nan finite:", np.isfinite(np.nan))
print("Is inf finite:", np.isfinite(np.inf))



Output



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, May 30, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250