most efficient way to forward-fill nan values in numpy array,"arr[mask] = arr[np.nonzero(mask)[0], idx[mask]]"