pypowsybl.network.Network.update_loads#
- Network.update_loads(df=None, **kwargs)[source]#
Update loads with data provided as a
DataFrame
or as named arguments.- Parameters:
df (DataFrame | None) – the data to be updated, as a dataframe.
kwargs (_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]) – the data to be updated, 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
Attributes that can be updated are:
p0
q0
connected
fictitious
See also
Examples
Some examples using keyword arguments:
network.update_loads(id='L-1', p0=10, q0=3) network.update_loads(id=['L-1', 'L-2'], p0=[10, 20], q0=[3, 5])