Network.get_injections(all_attributes=False, attributes=None)[source]#

Get a dataframe of injections

  • all_attributes (bool) – flag for including all attributes in the dataframe, default is false

  • attributes (List[str] | None) – attributes to include in the dataframe. The 2 parameters are mutually exclusive. If no parameter is specified, the dataframe will include the default attributes.


A dataframe of injections.

Return type:



The resulting dataframe, depending on the parameters, will include the following columns:

  • type: the type of the injection

  • voltage_level_id: at which substation the injection is connected

  • bus_id: bus where this injection is connected

This dataframe is indexed on the injections ID.