How to do a linear interpolation in pandas taking values of X into account?
How to do a linear interpolation in pandas taking values of X into account? Question: I have a data-frame with two columns: X and Y. Some of the values in Y are missing (np.nan). I would like to fill the NaNs using a linear interpolation. In more details, I want to order the data frame …