pypsa.Network.import_from_csv_folder

pypsa.Network.import_from_csv_folder#

Network.import_from_csv_folder(csv_folder_name: str | Path, encoding: str | None = None, skip_time: bool = False) None#

Import network data from CSVs in a folder.

The CSVs must follow the standard form, see pypsa/examples.

Parameters:
  • csv_folder_name (string) – Name of folder

  • encoding (str, default None) – Encoding to use for UTF when reading (ex. ‘utf-8’). List of Python standard encodings

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

Examples

>>> n.import_from_csv_folder(csv_folder_name)