flexops.costing.is_peak

flexops.costing.is_peak(tariff: DataFrame, index: DatetimeIndex) → Series

Boolean mask: True at the highest-price stamps (flex-pse helper over EECO).

A flex-pse helper derived from price_series(): True where the stamp’s base energy price equals the horizon maximum.

Parameters:
  • tariff – An EECO rate_data DataFrame.

  • index – A naive pd.DatetimeIndex to classify.

Returns:

A boolean pd.Series indexed by index.