incline.trend_with_sizer

incline.trend_with_sizer(df, column_value='value', time_column=None, smoother=None, min_persistence=3, **kwargs)[source]

Estimate a trend and mark where it survives a scale sweep.

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

  • column_value (str) – Column holding the values.

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

  • smoother (Smoother | None) – Estimator used for both the trend and the sweep.

  • min_persistence (int) – Consecutive scales required to call a feature real.

  • **kwargs (Any) – Passed to SiZer.

Returns:

The estimator’s usual columns plus sizer_significance, persistent_increasing and persistent_decreasing.

Return type:

DataFrame