- classmethod PPoly.from_spline(tck, extrapolate=None)¶
Construct a piecewise polynomial from a spline
A spline, as returned by splrep
extrapolate : bool or ‘periodic’, optional
If bool, determines whether to extrapolate to out-of-bounds points based on first and last intervals, or to return NaNs. If ‘periodic’, periodic extrapolation is used. Default is True.