isnan() python code example Example 1: how many nan in array python np.count_nonzero(~np.isnan(data)) Example 2: np where nan np.argwhere(np.isnan(x))