Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: ITPD-E R2025 (whole US dollars) with country, industry and gravity lookups
|
| 3 |
+
tags:
|
| 4 |
+
- economics
|
| 5 |
+
- international-trade
|
| 6 |
+
- gravity-model
|
| 7 |
+
size_categories:
|
| 8 |
+
- 10M<n<100M
|
| 9 |
+
configs:
|
| 10 |
+
- config_name: trade
|
| 11 |
+
data_files: ITPD_E_R2025_usd.parquet
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# ITPD-E R2025 — compact parquet + lookup tables
|
| 15 |
+
|
| 16 |
+
A compact, analysis-ready copy of the **USITC International Trade and Production
|
| 17 |
+
Database for Estimation (ITPD-E), release 2025**, plus lookup tables that link it
|
| 18 |
+
to ISO / UN M49 country codes, World Bank income groups and the USITC Dynamic
|
| 19 |
+
Gravity Dataset. It powers the
|
| 20 |
+
[International Trade Explorer](https://mrtimo.github.io/itpde/)
|
| 21 |
+
([source](https://github.com/mrtimo/itpde)).
|
| 22 |
+
|
| 23 |
+
## Files
|
| 24 |
+
|
| 25 |
+
| File | Rows | Description |
|
| 26 |
+
|---|---|---|
|
| 27 |
+
| `ITPD_E_R2025_usd.parquet` | 87,537,140 | One row per exporter × importer × industry × year, 1986–2023 (150 MB, zstd) |
|
| 28 |
+
| `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) |
|
| 29 |
+
| `lookups/country_year.csv` | 8,617 | ISO3 + year → ITPD-E/DGD dynamic code and the name used that year |
|
| 30 |
+
| `lookups/country_successor.csv` | 36 | Former countries / aggregates → successor states (e.g. SVU → 15 states) |
|
| 31 |
+
| `lookups/industry.csv` | 170 | ITPD-E industry id → description, broad sector |
|
| 32 |
+
| `lookups/flag_zero.csv` | 3 | Meaning of `flag_zero` (p / r / u) |
|
| 33 |
+
| `lookups/wb_income_group.csv` | 7,661 | World Bank income group by country and GNI year (1987–2023) |
|
| 34 |
+
| `lookups/dgd_country_year.csv` | 8,151 | DGD 2.1 country attributes by year (WTO/GATT/EU membership, GDP, population, polity…), 1986–2019 |
|
| 35 |
+
| `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 |
|
| 36 |
+
|
| 37 |
+
## Main table columns
|
| 38 |
+
|
| 39 |
+
`exporter_iso3`, `exporter_iso3_dynamic`, `exporter_name`, `importer_iso3`,
|
| 40 |
+
`importer_iso3_dynamic`, `importer_name`, `broad_sector`, `industry_id`,
|
| 41 |
+
`industry_descr`, `year`, `trade`, `flag_mirror`, `flag_zero`.
|
| 42 |
+
|
| 43 |
+
**`trade` is in whole current US dollars (BIGINT).** ITPD-E publishes millions of
|
| 44 |
+
USD; values were multiplied by 1,000,000 and rounded to the nearest dollar
|
| 45 |
+
(max change $0.50 per row; 99.5% of rows unchanged).
|
| 46 |
+
|
| 47 |
+
## Joins
|
| 48 |
+
|
| 49 |
+
- Country attributes: `exporter_iso3` / `importer_iso3` → `lookups/country.csv.iso3`
|
| 50 |
+
- Income group in the trade year: (`iso3`, `year`) → `wb_income_group.csv` (`iso3`, `gni_year`)
|
| 51 |
+
- Gravity, country-year: (`exporter_iso3_dynamic`, `year`) → `dgd_country_year.csv` (`dynamic_code`, `year`)
|
| 52 |
+
- Gravity, pair-year: (`exporter_iso3_dynamic`, `importer_iso3_dynamic`, `year`) → `dgd_pair_year.parquet` (`dynamic_code_o`, `dynamic_code_d`, `year`)
|
| 53 |
+
|
| 54 |
+
## Caveats
|
| 55 |
+
|
| 56 |
+
- Domestic flows (exporter = importer) are included: production sold at home. They are complete only through 2021.
|
| 57 |
+
- Coverage: agriculture from 1986, manufacturing and mining & energy from 1988, services from 2000 (source changes in 2004 and 2010).
|
| 58 |
+
- `flag_mirror` ranges 0–407 although documented as 0/1; > 0 means mirror data was used.
|
| 59 |
+
- 11 country codes are not current ISO codes (7 former ISO 3166-3 codes; `SVU`, `BLX`, `ETF`, `FRE` are ITPD-E-specific).
|
| 60 |
+
|
| 61 |
+
## Sources
|
| 62 |
+
|
| 63 |
+
- USITC ITPD-E R2025 — https://www.usitc.gov/data/gravity/itpde.htm
|
| 64 |
+
- USITC Dynamic Gravity Dataset 2.1 — https://www.usitc.gov/data/gravity/dgd.htm
|
| 65 |
+
- World Bank country classifications (OGHIST, CLASS) — https://datahelpdesk.worldbank.org/knowledgebase/articles/906519
|
| 66 |
+
- ISO 3166 / UN M49 codes via https://github.com/datasets/country-codes; ISO 3166-3 former codes compiled from Wikipedia
|
| 67 |
+
|
| 68 |
+
Please cite the original sources when using this data.
|