I am fairly new to Python pandas library and cannot find answer to my problem in other posts. I have a dataframe that looks like this. Dates are index names and series are column names.
>>> MyDataframe
Serie1 Serie2 Serie3 Serie4 Serie5
2011-04-30 92 96 NaN NaN NaN
2011-05-31 164 168 12 16 NaN
2011-06-30 238 242 90 20 88
2011-07-31 322 326 169 120 167
I would like to perform 1D linear interpolations within this dataframe but without modifying the dataframe, I just want to get the result. For instance I want to determine what is the value of Serie2 at the date of 2011-06-10. The functions DataFrame.interpolate() and Series.interpolate() seem to be useful only to replace the NaN with interpolated data.
Is there a function that could perform something like:
Result = MyDataFrame['Serie2'].interpolate('2011-06-10')
and it would simply return the linear interpolation between 168 and 242.
Thanks in advance for your support!