pypsa.statistics.StatisticsAccessor.opex

pypsa.statistics.StatisticsAccessor.opex#

StatisticsAccessor.opex(comps: Sequence[str] | str | None = None, aggregate_time: str | bool = 'sum', aggregate_groups: Callable | str | bool = 'sum', groupby: Callable | None = None, at_port: Sequence[str] | str | bool = False, bus_carrier: Sequence[str] | str | None = None, nice_names: bool | None = None) DataFrame#

Calculate the operational expenditure in the network in given currency.

If bus_carrier is given, only components which are connected to buses with carrier bus_carrier are considered.

For information on the list of arguments, see the docs in Network.statistics or pypsa.statistics.StatisticsAccessor.

Parameters:

aggregate_time (str, bool, optional) – Type of aggregation when aggregating time series. Note that for {‘mean’, ‘sum’} the time series are aggregated using snapshot weightings. With False the time series is given in currency/hour. Defaults to ‘sum’.