flexops.costing.peak_windows

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

Sub-index of the peak (highest-price) stamps (flex-pse helper over EECO).

Parameters:
  • tariff – An EECO rate_data DataFrame.

  • index – A naive pd.DatetimeIndex to filter.

Returns:

The pd.DatetimeIndex of stamps where is_peak() is True.