pypsa.Network.import_from_excel

pypsa.Network.import_from_excel#

Network.import_from_excel(path: str | Path, skip_time: bool = False, engine: str = 'calamine') None#

Import network data from an Excel file.

The Excel file must follow the standard form with appropriate sheets.

Parameters:
  • path (string or Path) – Path to the Excel file

  • skip_time (bool, default False) – Skip reading in time dependent attributes

  • engine (string, default "calamine") – The engine to use for reading the Excel file. See pandas.read_excel

Examples

>>> n = pypsa.Network()
>>> n.import_from_excel("my_network.xlsx")