incline.naive_trend

incline.naive_trend(df, value_column='value', time_column=None, **kwargs)[source]

Estimate the trend by central finite differences.

Does no smoothing, so it inherits the noise directly. Present mostly as the baseline the smoothing methods are meant to beat. Requires at least two observations.

Parameters:
  • df (pd.DataFrame) – Time series data.

  • value_column (str) – Column holding the values.

  • time_column (str | None) – Numeric time column.

  • **kwargs (Any) – Uncertainty options; see estimate().

Returns:

The input frame plus the estimate columns.

Return type:

pd.DataFrame