I want to impute missing values with (upper value + lower value)/2. If column "A" has NaN, I want to calculate like above and then put the value to the next column