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

Imports of Other and Used gets dropped #23

Open
WesIngwersen opened this issue Jan 17, 2024 · 4 comments
Open

Imports of Other and Used gets dropped #23

WesIngwersen opened this issue Jan 17, 2024 · 4 comments
Assignees
Labels
help wanted Extra attention is needed import_factors

Comments

@WesIngwersen
Copy link
Collaborator

t_df = get_tiva_data(year)
corr = (pd.read_csv(conPath / 'bea_imports_corr.csv',
usecols=['BEA Imports', 'BEA Summary'])
.drop_duplicates())
# ^^ requires mapping of import codes to summary codes. These codes are
# between detail and summary.
t_c = (t_df
.reset_index()
.rename(columns={'IOCode': 'BEA Imports'})
.merge(corr, on='BEA Imports', how='left', validate='one_to_many')
.drop(columns='BEA Imports')
.groupby('BEA Summary').agg('sum'))

There are significant imports of Other goods and some of Used goods (see rows from t_df from 2012 these are in million current USD)

IOCode CA CN EU JP MX APAC ROW
Used 2907 325 1456 179 713 360 578
Other 7766 3381 55516 12738 5021 15549 20653

but they get dropped after this merge because they are not in the concordance.

These would account for substantial embodied emissions and need to be handled.

@WesIngwersen WesIngwersen added help wanted Extra attention is needed import_factors labels Jan 17, 2024
@WesIngwersen
Copy link
Collaborator Author

A test of the quantity of imports before and after merging in this step could help identify and prevent such data loss

@bl-young
Copy link
Collaborator

Review those exiobase sectors that don't match at all - those are likely to be in this "other" category

@Jnamovich Jnamovich self-assigned this Jan 19, 2024
@bl-young
Copy link
Collaborator

USED data was getting dropped because the sector mapped to USED from exiobase has no exports to the US (in exiobase). this is fixed with bf995e5

@WesIngwersen
Copy link
Collaborator Author

The BEA Concepts and Methods in IO (the IO Manual) has a good section on defining non-comparable imports and the source data.
These are mostly services consumed by US residents abroad. Foreign travel is a big one.
This needs to be address in the longer term, as they these services do have embodied flows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed import_factors
Projects
None yet
Development

No branches or pull requests

3 participants