mario.parse_eurostat_sut¶
- mario.parse_eurostat_sut(supply_path: str, use_path: str, model: str = 'Database', name: Optional[str] = None, calc_all: bool = False, **kwargs) → object¶
Parsing Eurostat databases
Note
this function is not generally applicable to any Eurostat table: it works only for specific table formats. Please refer to the example on the website
first rule: it is not possible to parse file different from .xls format
second rule: in each .xsl file, be sure data are referring to only one region
third rule: use only “total” as stock/flow parameter, and only one unit of measure
forth rule: supply must be provided in activity by commodity, use must be provided in commodity by activitiy formats
- Parameters
supply_path (str) – path to the .xls file containing the supply table
use_path (str) – path to the .xls file containing the use table
name (str, Optional) – for recording on the metadata
calc_all (bool, Optional) – if True, will calculate the main missing matrices
- Returns
- Return type
mario.Database