I have a 1d Numpy array with NaNs and no NaNs values:
arr = np.array([4, np.nan, np.nan, 3, np.nan, 5])
I need to replace NaN values with pre