pypsa.statistics.grouping.Groupers.bus_carrier

pypsa.statistics.grouping.Groupers.bus_carrier#

Groupers.bus_carrier(n: Network, c: str, port: str = '', nice_names: bool = True) pd.Series#

Grouper method to group by the carrier of the attached bus of a component.

Parameters:
  • n (Network) – PyPSA network instance.

  • c (str) – Components type name. E.g. “Generator”, “StorageUnit”, etc.

  • port (str, optional) – Port of corresponding bus, which should be used.

  • nice_names (bool, optional) – Whether to use nice carrier names.

Returns:

Series with the bus and carrier of the components.

Return type:

pd.Series