marmot.utils.dataio.read_csv_property_file#

read_csv_property_file(csv_property_folder: pathlib.Path, plx_prop_name: str, scenario: str) pandas.core.frame.DataFrame[source]#

Read formatted data from csv file.

Allows data to be read in from a csv if it is missing from the formatted h5 file. Format of data must adhere to the standard Marmot formats for each data class, e.g generator, line etc.

Filename should be of the following pattern: - {scenario}_{plx_prop_name}.csv

An example of a line_Net_Import: - Base DA_line_Net_Import.csv

The Marmot formatter will not create these files, they must be created manually.

Parameters
  • csv_property_folder (Path) – Directory containing csv property files.

  • plx_prop_name (str) – Name of property, e.g generator_Generation

  • scenario (str) – Name of scenario.

Returns

Requested dataframe or empty dataframe if file not found.

Return type

pd.DataFrame