pypowsybl.network.Network.create_areas

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

Create areas.

Parameters:
  • df (DataFrame | None) – Attributes as a dataframe.

  • kwargs (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) – Attributes as keyword arguments.

Return type:

None

See also

get_areas()

Notes

Data may be provided as a dataframe or as keyword arguments. In the latter case, all arguments must have the same length.

Valid attributes are:

  • id: the identifier of the new area

  • name: an optional human-readable name

  • area_type: the type of Area (e.g. ControlArea, BiddingZone …)

  • interchange_target: Target active power interchange (MW)

Examples

Using keyword arguments:

network.create_areas(id='Area1', area_type='ControlArea', interchange_target=120.5)