“With the same elegance” is a somewhat high order, but it can be done. As far as I know, you will need to calculate the extrapolated values manually. Please note that it is very unlikely that these values will be very significant, unless the data you are using actually obeys the law of the shape of the interpolator.
For example, since you requested a polynomial polygon of the second degree:
import numpy as np t = df["time"] dat = df["data"] p = np.poly1d(np.polyfit(t,data,2))
Now p (t) is the value of the polynomial of best correspondence at time t.
source share