I have the following array:
a = np.array([np.nan, 1, 2]) a >>array([nan, 1., 2.]) for rows in a: if i == np.NaN: print("") else