pypsa.statistics.grouping.Groupers.bus

Contents

pypsa.statistics.grouping.Groupers.bus#

Groupers.bus(n: Network, c: str, port: str = '') pd.Series#

Grouper method to group by the attached bus of the components.

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.

Returns:

Series with the bus of the components.

Return type:

pd.Series