Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant find import data #150

Open
ElvisKwameOfori123 opened this issue Oct 1, 2024 · 0 comments
Open

cant find import data #150

ElvisKwameOfori123 opened this issue Oct 1, 2024 · 0 comments

Comments

@ElvisKwameOfori123
Copy link

I dont know if it logical to calculate it and which approach to use

Extract the exports data (total fob) for different regions (which will be imports to other regions)

Y matrix provides final demand, which includes exports from one region to another.

Imports to EU (Exports from ROW to EU)

imports_eu = Y.loc[rest_of_world, 'Exports: Total (fob)'][eu_regions].sum()

Imports to Ireland (Exports from ROW and EU to Ireland)

imports_ie = Y.loc[rest_of_world + eu_regions, 'Exports: Total (fob)'][['IE']].sum()

Imports to ROW (Exports from EU and Ireland to ROW)

imports_row = Y.loc[eu_regions + ['IE'], 'Exports: Total (fob)'][rest_of_world].sum()

Print the imports

print("Total Imports for EU (fob):", imports_eu)
print("Total Imports for Ireland (fob):", imports_ie)
print("Total Imports for Rest of the World (fob):", imports_row)

or this

Get total domestic production (Z matrix provides inter-sectoral supply)

domestic_production = exio3.Z.sum(axis=1)

Get exports from region to other regions (Y matrix provides final demand, including exports)

exports = exio3.Y.loc[region, 'Exports: Total (fob)']

Get domestic final demand (household consumption, government spending, etc.)

domestic_demand = exio3.Y.loc[region, ['Final consumption expenditure by households', 'Final consumption expenditure by government']].sum(axis=1)

Calculate imports for the region

derived_imports = domestic_production - domestic_demand - exports

print("Derived Imports for the region:", derived_imports)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant