Network.update_linear_shunt_compensator_sections(df=None, **kwargs)[source]#

Update shunt compensators with data provided as a DataFrame or as named arguments.

  • 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:



Attributes that can be updated are:

  • g_per_section

  • b_per_section

  • max_section_count


Some examples using keyword arguments:

network.update_linear_shunt_compensator_sections(id='CAP-1', max_section_count=3)