mario.parse_eora¶
- mario.parse_eora(path: str, multi_region: bool, table: str, indeces: Optional[str] = None, name_convention: str = 'full_name', aggregate_trade: bool = True, year: Optional[int] = None, name: Optional[str] = None, calc_all: bool = False, model: str = 'Database', **kwargs) → object¶
Parsing EORA databases
Note
for multi_region database, only eora26 is acceptable
multi_region database has some inconsistencies that are modified when parsed.
to see the modifications after parsing call ‘meta_history’
- Parameters
path (str) – path to the zip file containing the database
multi_region (bool) – True for eora26 else False
indeces (str) – in case of multi_region database, the indeces.zip file path should be given
name_convension (str) – will take the full names of countries if full_name otherwise, takes the abbreviations
aggregate_trade (boolean) – if True, will aggregated all the trades into total imports and exports in single region database
year (int, Optional) – for recording on the metadata
name (str, Optional) – for recording on the metadata
calc_all (boolean) – if True, will calculate the main missing matrices
- Returns
- Return type
mario.Database