Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
incline
incline

Contents:

  • Installation
  • Quickstart
  • Uncertainty
  • API reference
    • incline.naive_trend
    • incline.sgolay_trend
    • incline.spline_trend
    • incline.pspline_trend
    • incline.loess_trend
    • incline.local_polynomial_trend
    • incline.l1_trend_filter
    • incline.gp_trend
    • incline.kalman_trend
    • incline.estimate_trend
    • incline.select_trend_method
    • incline.estimate
    • incline.Smoother
    • incline.SavitzkyGolay
    • incline.NaiveDifference
    • incline.LocalPolynomial
    • incline.Loess
    • incline.PenalizedSpline
    • incline.InterpolatingSpline
    • incline.L1TrendFilter
    • incline.GaussianProcess
    • incline.StateSpace
    • incline.build
    • incline.NoiseModel
    • incline.IID
    • incline.AR1
    • incline.Heteroskedastic
    • incline.Given
    • incline.local_sigma
    • incline.TrendEstimate
    • incline.TimeAxis
    • incline.SiZer
    • incline.SiZerMap
    • incline.sizer_analysis
    • incline.trend_with_sizer
    • incline.deseasonalize
    • incline.detect_seasonality
    • incline.stl_decompose
    • incline.moving_average_decompose
    • incline.trend_with_deseasonalization
    • incline.Seasonality
    • incline.trending
    • incline.generate_time_series
    • incline.standard_test_functions
  • Executable Examples
    • Basic Usage Examples
    • Advanced methods
  • Limitations
Back to top
View this page

incline.trending¶

incline.trending(estimates, k=5, how='mean', weighting='uniform', confidence_level=0.95, ids=None)[source]¶

Rank series by recent trend strength.

Parameters:
  • estimates (Mapping[str, TrendEstimate] | Sequence[TrendEstimate]) – Estimates to rank, either as a mapping from identifier to estimate or as a sequence alongside ids.

  • k (int) – How many of the most recent observations to summarize.

  • how (Aggregation) – 'mean', 'max', 'median' or 'last'. Only 'mean' and 'last' propagate uncertainty exactly.

  • weighting (Weighting) – Weighting across the window for 'mean'.

  • confidence_level (float) – Confidence level for the reported interval.

  • ids (Sequence[str] | None) – Identifiers, when estimates is a sequence.

Returns:

One row per series with columns id, trend, trend_se, ci_lower, ci_upper, significant, se_exact, rank, sorted strongest first. The schema does not change when the input is empty.

Raises:

ValueError – If identifiers cannot be determined.

Return type:

pd.DataFrame

Next
incline.generate_time_series
Previous
incline.Seasonality
Copyright © 2026, Suriyan Laohaprapanon, Gaurav Sood
Made with Sphinx and @pradyunsg's Furo
On this page
  • incline.trending
    • trending()