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.
If None (default), use self.extrapolate.