pypsa.Network.import_from_excel

pypsa.Network.import_from_excel#

Network.import_from_excel(excel_file_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:
  • excel_file_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.import_from_excel(excel_file_path)