pypowsybl.network.Network.create_substations#
- Network.create_substations(df=None, **kwargs)[source]#
Creates substations.
- Parameters:
- Return type:
None
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 substation - name: an optional human readable name for the substation - country: an optional country code (‘DE’, ‘IT’, …) - TSO: an optional TSO name
Examples
Using keyword arguments:
network.create_substations(id='S-1', country='IT', TSO='TERNA')
Or using a dataframe:
stations = pd.DataFrame.from_records(index='id', data=[ {'id': 'S1', 'country': 'BE'}, {'id': 'S2', 'country': 'DE'} ]) network.create_substations(stations)