checking if to nmpy arrays are equal even with nan values code example Example: python numpy array check if all nans np.all(np.isnan(numpy_array))