max()

Signature 1:

max_value(self) -> float

Detailed Documentation

Signature 2:

aggregate_ts(
    func: Union[
        list[Union[Callable[[Any], Any], str]],
        Callable[[Any], Any],
        str
        ],
    timeseries: list[TimeSeries]
) -> TimeSeries

Detailed Documentation

The hec-python-library equivalent of Jython method max():

Signature 2 is a static method and must be called on the TimeSeries class instead of an instance

Example 1:

max_val = ts.max_value()

Example 2:

from hec import TimeSeries

ts_list: list[TimeSeries]

ts_max = TimeSeries.aggregate_ts("max", ts_list)