pypowsybl.network.Network.create_extensions¶
- Network.create_extensions(extension_name, df=None, **kwargs)[source]¶
create extensions of network elements with data provided as a
DataFrame.- Parameters:
extension_name (str) – name of the extension
df (DataFrame | List[DataFrame | None] | None) – the data to be created A single dataframe or a list of dataframes can be given as arguments
kwargs (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – the data to be created, as named arguments. Arguments can be single values or any type of sequence. In the case of sequences, all arguments must have the same length.
- Return type:
None
Notes
The id column in the dataframe provides the link to the extensions parent elements