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