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


Picture showing the output of the isfinite function in numpy
Click to Enlarge


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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250