p90()

Signature:

percentile_ts(
    pct: float,
    timeseries: list[TimeSeries]
) -> TimeSeries

Detailed Documentation

The hec-python-library equivalent of Jython method p90()

Notes:

  1. percentile_ts() is a static method that must be called on the TimeSeries class and not on an instnace.

  2. There is a percentile() method that returns a specified perctile of the values in a time series

Example:

ts_list: list[TimeSeries]

ts_p90 = TimeSeries.percentile_ts(90.0, ts_list)