import numpy as np readings = np.array([18.5, np.nan, np.inf, -np.inf, 21.0])