flexops.costing.price_gradient

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

Δ base energy price between successive stamps (flex-pse helper over EECO).

A flex-pse helper: the first difference of price_series(), with the leading value set to 0. Nonzero at off-peak↔peak transitions, 0 within a flat run.

Parameters:
  • tariff – An EECO rate_data DataFrame.

  • index – A naive pd.DatetimeIndex.

Returns:

A pd.Series of price differences indexed by index.