pypsa.statistics.grouping.Groupers.carrier# Groupers.carrier(n: Network, c: str, nice_names: bool = True) → pd.Series# Grouper method to group by the carrier of the components. Parameters: n (Network) – PyPSA network instance. c (str) – Components type name. E.g. “Generator”, “StorageUnit”, etc. nice_names (bool, optional) – Whether to use nice carrier names. Returns: Series with the carrier of the components. Return type: pd.Series