mario.parse_wiod#
- mario.parse_wiod(path: str, table: str = 'IOT', year: int | None = None, country: str | None = None, add_extensions: str | None = None, row_mode: str = 'external_account', model: str = 'Database', name: str | None = None, calc_all: bool = False, **kwargs) object#
Parse one WIOD 2016 multiregional Excel workbook from the official release.
This parser targets the multiregional WIOD 2016 Excel workbooks distributed on the official GGDC release page at
https://www.rug.nl/ggdc/valuechain/wiod/wiod-2016-release?lang=en. The direct file links used there are currently:MRIO IOT, current prices:
https://dataverse.nl/api/access/datafile/199104MRIO IOT, previous-year prices (
_PYP):https://dataverse.nl/api/access/datafile/199102MRIO SUT, international:
https://dataverse.nl/api/access/datafile/199100national IOT bundle:
https://dataverse.nl/api/access/datafile/199099national SUT bundle:
https://dataverse.nl/api/access/datafile/199096socio-economic accounts:
https://dataverse.nl/api/access/datafile/199095
MARIO currently supports:
multiregional IOT
.xlsbworkbooks, including the_PYPvariant;multiregional SUT
.xlsbworkbooks;national IOT
.xlsxworkbooks such asITA_NIOT_nov16.xlsx;national SUT
.xlsxworkbooks such asITA_SUT_nov16.xlsx.
- Parameters:
path (str) – path to one local WIOD 2016 multiregional
.xlsbworkbook or to a directory containing one or more WIOD 2016 multiregional workbooks.table (str, optional) – choose between
IOTandSUT.year (int, optional) – reference year to select when
pathpoints to a directory that contains more than one WIOD 2016 workbook. For national WIOD tables, this is mandatory because one workbook contains the full time series.country (str, optional) – country selector used when
pathpoints to a directory containing multiple national WIOD workbooks.add_extensions (str, optional) – optional path to
Socio_Economic_Accounts.xlsx. When provided, MARIO imports the socio-economic accounts as satellite extensions. For IOT tables they populateE; for SUT tables they populateEawhile leavingEczero-filled.row_mode (str, optional) – only relevant for the international WIOD SUT workbook. Use
"external_account"(default) to removeROWfrom the endogenous region set and reclassify its intermediate/final-demand uses intoVaandVY. Use"legacy_region"to keep the previous parser behavior whereROWstays on the commodity side of the SUT region axis. This part of the WIOD international SUT treatment should still be considered investigative because the source workbook does not provide a fully endogenousROWeconomy.model (str, optional) – public MARIO model class to instantiate.
Databaseis the default and the only supported value.name (str, optional) – optional dataset name stored in metadata.
calc_all (bool, optional) – whether to materialize derived blocks immediately after parsing.