Piecewise linear approximation of time series. Based on https://pypi.org/project/pwlf.
pwlf(self, component, n, in_place=False, verbose=False, output=False)¶
Perform a piecewise approximation of a time series. Since it the routine is 1D, the component E,N, or U needs to be specified.
component – component used for the decomposition. Must be ‘E’,’N’ or ‘U’
n – number of segments
in_place – if True then replace the current time series
verbose – boolean, verbose mode
if False, the predicted time series is returned. If True, then a list of dates is returned.