The OECD Inter-Country Input-Output tables (ICIO) are available on the OECD webpage.
The parsing function >parse_oecd< works for both, the 2016 and 2018 release.
The tables can either be downloaded manually (using the csv format), or the pymrio OECD automatic downloader can be used WIOD download.
For example, to get the 2011 table of the 2018 release do:
In [1]:
import pymrio
In [2]:
from pathlib import Path
In [3]:
oecd_storage = Path('/tmp/mrios/OECD')
In [4]:
meta_2018_download = pymrio.download_oecd(storage_folder=oecd_storage, years=[2011])
OECD provides the data compressed in zip files. The pymrio oecd parser works with both, the compressed and unpacked version.
To parse a single year of the database, either specify a path and year:
In [5]:
oecd_path_year = pymrio.parse_oecd(path=oecd_storage, year=2011)
Or directly specify a file to parse:
In [6]:
oecd_file = pymrio.parse_oecd(path=oecd_storage / 'ICIO2018_2011.zip')
In [7]:
oecd_path_year == oecd_file
Out[7]:
Note: The original OECD ICIO tables provide some disaggregation of the Mexican and Chinese tables for the interindustry flows. The pymrio parser automatically aggregates these into Chinese And Mexican totals. Thus, the MX1, MX2, .. and CN1, CN2, ... entries are aggregated into MEX and CHN.
Currently, the parser only includes the value added and taxes data given in original file as satellite accounts. These are accessable in the extension "factor_inputs":
In [8]:
oecd_file.factor_inputs.F.head()
Out[8]:
Handling of the data happens similar to the other databases, see for example "Exploring EXIOBASE".