pypsa.Network.import_from_csv_folder#
- Network.import_from_csv_folder(csv_folder_name: str | Path, encoding: str | None = None, quotechar: str = '"', 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
quotechar (str, default '"') – String of length 1. Character used to denote the start and end of a quoted item. Quoted items can include “,” and it will be ignored
skip_time (bool, default False) – Skip reading in time dependent attributes
Examples
>>> n.import_from_csv_folder(csv_folder_name)