itpde / README.md
24601p's picture
Link to tradeexplorer.org
c990ece verified
|
Raw History Blame Contribute Delete
5.43 kB
metadata
pretty_name: ITPD-E R2025 (whole US dollars) with country, industry and gravity lookups
tags:
  - economics
  - international-trade
  - gravity-model
size_categories:
  - 10M<n<100M
configs:
  - config_name: trade
    data_files: ITPD_E_R2025_usd.parquet
  - config_name: web
    data_files: web/ITPD_E_R2025_web.parquet

ITPD-E R2025 — compact parquet + lookup tables

A compact, analysis-ready copy of the USITC International Trade and Production Database for Estimation (ITPD-E), release 2025, plus lookup tables that link it to ISO / UN M49 country codes, World Bank income groups and the USITC Dynamic Gravity Dataset. It powers the International Trade Explorer (source).

Files

File Rows Description
ITPD_E_R2025_usd.parquet 87,537,140 One row per exporter × importer × industry × year, 1986–2023 (150 MB, zstd)
web/ITPD_E_R2025_web.parquet 33,468,219 Smaller copy for the website (81 MB) — see below
aggregates/world_region_flows.parquet 166,242 Cross-border trade by year × industry × exporter UN region × importer UN region, with trade-agreement and distance pieces (2.4 MB)
aggregates/world_exporters.parquet 985,102 Cross-border exports by year × industry × exporting country (3.1 MB)
lookups/country.csv 257 Country codes used in ITPD-E: ISO 3166-1 alpha-2/3/numeric, former ISO 3166-3 codes, UN M49 regions, LDC/LLDC/SIDS flags, World Bank region/income/lending (current)
lookups/country_year.csv 8,617 ISO3 + year → ITPD-E/DGD dynamic code and the name used that year
lookups/country_successor.csv 36 Former countries / aggregates → successor states (e.g. SVU → 15 states)
lookups/industry.csv 170 ITPD-E industry id → description, broad sector
lookups/flag_zero.csv 3 Meaning of flag_zero (p / r / u)
lookups/wb_income_group.csv 7,661 World Bank income group by country and GNI year (1987–2023)
lookups/dgd_country_year.csv 8,151 DGD 2.1 country attributes by year (WTO/GATT/EU membership, GDP, population, polity…), 1986–2019
lookups/dgd_pair_year.parquet 1,956,949 DGD 2.1 country-pair attributes by year (distance, contiguity, common language, colonial ties, trade agreements, sanctions), 1986–2019

Main table columns

exporter_iso3, exporter_iso3_dynamic, exporter_name, importer_iso3, importer_iso3_dynamic, importer_name, broad_sector, industry_id, industry_descr, year, trade, flag_mirror, flag_zero.

trade is in whole current US dollars (BIGINT). ITPD-E publishes millions of USD; values were multiplied by 1,000,000 and rounded to the nearest dollar (max change $0.50 per row; 99.5% of rows unchanged).

Web copy (web/ITPD_E_R2025_web.parquet)

The International Trade Explorer downloads this 81 MB file instead of the 150 MB full table. Same 13 columns, but:

  • only rows with positive trade (zero-trade rows dropped: 54.1M rows flagged u/r);
  • trade rounded to the nearest $1,000 (values under $1,000 kept exact, so no positive flow becomes zero);
  • flag_mirror, exporter_name and importer_name are left empty (use lookups/country.csv / country_year.csv for names).

Row counts of positive flows are identical to the full table; the largest difference in any exporter × importer × year total is $14,172. Use the full table for research.

Aggregates (aggregates/)

Small pre-aggregated tables used by the explorer's world view, built from the full table by scripts/build_aggregates.sql: cross-border flows with positive trade, money rounded to the nearest $1,000 (values under $1,000 kept exact). Agreement share = sum(pta_trade_usd) / sum(pta_known_trade_usd); trade-weighted distance = sum(avg_distance_km × distance_known_trade_usd) / sum(distance_known_trade_usd).

Joins

  • Country attributes: exporter_iso3 / importer_iso3 → lookups/country.csv.iso3
  • Income group in the trade year: (iso3, year) → wb_income_group.csv (iso3, gni_year)
  • Gravity, country-year: (exporter_iso3_dynamic, year) → dgd_country_year.csv (dynamic_code, year)
  • Gravity, pair-year: (exporter_iso3_dynamic, importer_iso3_dynamic, year) → dgd_pair_year.parquet (dynamic_code_o, dynamic_code_d, year)

Caveats

  • Domestic flows (exporter = importer) are included: production sold at home. They are complete only through 2021.
  • Coverage: agriculture from 1986, manufacturing and mining & energy from 1988, services from 2000 (source changes in 2004 and 2010).
  • flag_mirror ranges 0–407 although documented as 0/1; > 0 means mirror data was used.
  • 11 country codes are not current ISO codes (7 former ISO 3166-3 codes; SVU, BLX, ETF, FRE are ITPD-E-specific).

Sources

Please cite the original sources when using this data.