Just ```np.isnan(x) | np.isnan(y)```?