I have two dataframes, flat and bias. Bias has some missing values. (2456650, 2459654). After subtracting bias from flat, I got the result for the remaining values. My task is to check for the nearest value in bias to do the subtraction for missing values. I have to check for 2459654, which is a missing value in the bias, I have to check for (2459653 or 2459655). If they are not present, I have to check for (2459652 or 2459656) and subtract any value. I have to check for both + and -, unless I got one.
But i hvae to check for values now which are not presnent in bias.