# Global Import-Export Top Product Routes (1995-2024)

Ranked exporter-importer routes for individual HS6 products, combining export performance with buyer demand, market share, competition, access, and route-risk indicators.

## What one row represents
one HS6 product and exporter-importer route

## Included measures and context
- Route ranking, trade values, and growth
- Buyer demand, supplier competition, and market share
- Tariff, volatility, and risk indicators

## Metric notes
- HS6 codes identify products at the six-digit Harmonized System level.
- CAGR is the compound annual growth rate across a multi-year period.
- HHI summarizes concentration; higher values indicate activity is concentrated among fewer participants.
- Year-over-year growth compares a value with the previous year; a negative percentage indicates a decline.
- Fields marked USD are monetary values denominated in US dollars.
- Values ending in pp are percentage-point changes.
- Values ending in pct are percentages.
- Country fields ending in ISO3 use three-letter ISO 3166-1 country codes.

## Fields
Column names are shown exactly as they appear in the CSV file. The schema lists the same fields, and the sample file shows example values.

- `hs_code` — `string`
- `corridor_rank` — `uint16`
- `exporter_iso3` — `string`
- `importer_iso3` — `string`
- `latest_data_year` — `uint16`
- `lane_data_years` — `uint16`
- `exports_latest_observed_usd` — `float64`
- `exports_all_year_avg_usd` — `float64`
- `exports_avg_3y_usd` — `float64`
- `exports_avg_5y_usd` — `float64`
- `exports_avg_10y_usd` — `float64`
- `exports_cagr_3y_pct` — `float64`
- `exports_cagr_5y_pct` — `float64`
- `exports_cagr_10y_pct` — `float64`
- `exports_historical_peak_usd` — `float64`
- `buyer_imports_latest_observed_usd` — `float64`
- `historical_peak_year` — `uint16`
- `positive_growth_year_share_pct` — `float64`
- `trend_acceleration_pct` — `float64`
- `trend_label` — `string`
- `buyer_yoy_latest_pct` — `float64`
- `buyer_yoy_all_avg_pct` — `float64`
- `buyer_trend_consistency_pct` — `float64`
- `market_share_latest_pct` — `float64`
- `market_share_change_1y_pp` — `float64`
- `peer_best_share_pct` — `float64`
- `peer_top_exporter` — `string`
- `supplier_count_latest` — `uint16`
- `buyer_market_hhi` — `float64`
- `distance_km` — `float64`
- `has_reported_fta` — `uint8`
- `applied_tariff_pct` — `float64`
- `tariff_advantage_pp` — `float64`
- `volatility_cv` — `float64`
- `max_drawdown_pct` — `float64`
- `attention_level` — `string`
- `primary_risk_reason` — `string`
- `risk_driver_labels` — `List`
- `signal_flag` — `string`
- `confidence_label` — `string`
- `refreshed_at` — `timestamp[ms, tz=UTC]`

## Coverage and size
- Coverage: 1995-2024 annual observations where available
- Records: 477,118
- CSV file size: 285.8 MB
- Release: 1.0.0
- SHA-256: `ccdc08ac850847f31d3a5a9212315849e8f0a6b8ac27aa6d68462e415897d7cd`

## Files
- `data.csv` — complete dataset
- `manifest.json` — dataset description, coverage, record count, and download details
- `schema.json` — field names, row definition, included measures, and metric notes
- `sample.json` — example records
- `README.md` — these notes

## Read the CSV file with Python
```python
import pyarrow as pa
import pyarrow.csv as csv

column_types = {
    "hs_code": pa.type_for_alias("string"),
    "corridor_rank": pa.type_for_alias("uint16"),
    "exporter_iso3": pa.type_for_alias("string"),
    "importer_iso3": pa.type_for_alias("string"),
    "latest_data_year": pa.type_for_alias("uint16"),
    "lane_data_years": pa.type_for_alias("uint16"),
    "exports_latest_observed_usd": pa.type_for_alias("double"),
    "exports_all_year_avg_usd": pa.type_for_alias("double"),
    "exports_avg_3y_usd": pa.type_for_alias("double"),
    "exports_avg_5y_usd": pa.type_for_alias("double"),
    "exports_avg_10y_usd": pa.type_for_alias("double"),
    "exports_cagr_3y_pct": pa.type_for_alias("double"),
    "exports_cagr_5y_pct": pa.type_for_alias("double"),
    "exports_cagr_10y_pct": pa.type_for_alias("double"),
    "exports_historical_peak_usd": pa.type_for_alias("double"),
    "buyer_imports_latest_observed_usd": pa.type_for_alias("double"),
    "historical_peak_year": pa.type_for_alias("uint16"),
    "positive_growth_year_share_pct": pa.type_for_alias("double"),
    "trend_acceleration_pct": pa.type_for_alias("double"),
    "trend_label": pa.type_for_alias("string"),
    "buyer_yoy_latest_pct": pa.type_for_alias("double"),
    "buyer_yoy_all_avg_pct": pa.type_for_alias("double"),
    "buyer_trend_consistency_pct": pa.type_for_alias("double"),
    "market_share_latest_pct": pa.type_for_alias("double"),
    "market_share_change_1y_pp": pa.type_for_alias("double"),
    "peer_best_share_pct": pa.type_for_alias("double"),
    "peer_top_exporter": pa.type_for_alias("string"),
    "supplier_count_latest": pa.type_for_alias("uint16"),
    "buyer_market_hhi": pa.type_for_alias("double"),
    "distance_km": pa.type_for_alias("double"),
    "has_reported_fta": pa.type_for_alias("uint8"),
    "applied_tariff_pct": pa.type_for_alias("double"),
    "tariff_advantage_pp": pa.type_for_alias("double"),
    "volatility_cv": pa.type_for_alias("double"),
    "max_drawdown_pct": pa.type_for_alias("double"),
    "attention_level": pa.type_for_alias("string"),
    "primary_risk_reason": pa.type_for_alias("string"),
    "risk_driver_labels": pa.type_for_alias("string"),
    "signal_flag": pa.type_for_alias("string"),
    "confidence_label": pa.type_for_alias("string"),
    "refreshed_at": pa.timestamp("ms", tz="UTC"),
}
reader = csv.open_csv(
    "data.csv",
    read_options=csv.ReadOptions(use_threads=False),
    parse_options=csv.ParseOptions(newlines_in_values=True, ignore_empty_lines=False),
    convert_options=csv.ConvertOptions(
        column_types=column_types, null_values=[""],
        strings_can_be_null=True, quoted_strings_can_be_null=False,
    ),
)
for batch in reader:
    print(batch.num_rows)  # Process one batch at a time.
```

Install `pyarrow` if it is not already available: `python -m pip install pyarrow`.

## Sources and related files
- OECD BIMTS HS2017-6D
- Dataset page: https://www.yugalinks.org/datasets/v1/import-export/import-export-top-product-routes-v1/
- Original dataset record: https://huggingface.co/datasets/yugalinks/import-export-top-product-routes-v1

---

Published by Yugalinks: https://www.yugalinks.org/datasets/v1/import-export/import-export-top-product-routes-v1

Contact: [support@yugalinks.com](mailto:support@yugalinks.com)


## CSV values

The CSV uses UTF-8 and includes the field names in the first row. Country and product codes are text; keep their leading zeros.
An unquoted empty field means unavailable. A quoted empty field is an empty string. Literal text such as NA and null remains text.
Keep the column types shown above when reading numbers, so large counts and decimal values are not rounded.
The `risk_driver_labels` field contains JSON arrays in a single cell. Use json.loads to read each nonempty array value; [] is an empty array, not an unavailable value.
