I have two arrays, arr1 and arr2, same length contain random NaNs and numbers.
arr1 = np.array((1.3, -1.2, -0.2, 1.6, np.nan, np.nan, np.nan)) arr2 = np.array((-0