Numpy 2D array: change all values to the right of NaNs,"arr[np.maximum.accumulate(np.isnan(arr), axis=1)] = np.nan"