pypsa.statistics.StatisticsAccessor.revenue

pypsa.statistics.StatisticsAccessor.revenue#

StatisticsAccessor.revenue(comps=None, aggregate_time='sum', aggregate_groups='sum', groupby=None, at_port=True, bus_carrier=None, nice_names=None, kind=None)#

Calculate the revenue of components in the network in given currency. The revenue is defined as the net revenue of an asset, i.e cost of input - revenue of output. If kind is set to “input” or “output” only the revenue of the input or output is considered.

If bus_carrier is given, only the revenue resulting from buses with carrier bus_carrier is 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 to using snapshot weightings. With False the time series is given. Defaults to ‘sum’.

  • kind (str, optional) – Type of revenue to consider. If ‘input’ only the revenue of the input is considered. If ‘output’ only the revenue of the output is considered. Defaults to None.