# Global Import-Export Route Risk Monitor (1995-2024)

Exporter-importer route summaries covering current trade, product-level risk counts, demand and concentration measures, trade access, and buyer-market context.

## What one row represents
one exporter-importer country pair

## Included measures and context
- Current trade and values associated with route signals
- Product concentration, volatility, and drawdown measures
- Tariffs, agreement, distance, and selected buyer-market indicators

## Metric notes
- CAGR is the compound annual growth rate across a multi-year period.
- HHI summarizes concentration; higher values indicate activity is concentrated among fewer participants.
- Fields marked USD are monetary values denominated in US dollars.
- Count fields report the number of items named in the field, such as products, partners, or routes.
- 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.

- `exporter_iso3` — `string`
- `importer_iso3` — `string`
- `all_history_lane_count` — `uint64`
- `current_lane_count` — `uint64`
- `current_product_count` — `uint64`
- `first_observed_last_year` — `uint16`
- `latest_data_year` — `uint16`
- `current_trade_usd` — `float64`
- `attention_trade_usd` — `float64`
- `critical_trade_usd` — `float64`
- `high_volatility_trade_usd` — `float64`
- `unrecovered_drawdown_trade_usd` — `float64`
- `declining_demand_trade_usd` — `float64`
- `concentrated_market_trade_usd` — `float64`
- `access_friction_trade_usd` — `float64`
- `buyer_macro_weakness_trade_usd` — `float64`
- `critical_lane_count` — `uint64`
- `high_attention_lane_count` — `uint64`
- `high_volatility_lane_count` — `uint64`
- `unrecovered_drawdown_lane_count` — `uint64`
- `declining_demand_lane_count` — `uint64`
- `concentrated_market_lane_count` — `uint64`
- `access_friction_lane_count` — `uint64`
- `trade_weighted_volatility_cv` — `float64`
- `trade_weighted_below_peak_pct` — `float64`
- `product_hhi_numerator` — `float64`
- `top3_product_trade_usd` — `float64`
- `top_product_hs6` — `string`
- `top_product_trade_usd` — `float64`
- `top_product_description` — `string`
- `top_attention_product_hs6` — `string`
- `top_attention_product_reason` — `string`
- `distance_km` — `float64`
- `shares_land_border` — `uint8`
- `shares_official_language` — `uint8`
- `common_spoken_language_score` — `float64`
- `has_reported_fta` — `uint8`
- `avg_applied_tariff_pct` — `float64`
- `avg_mfn_tariff_pct` — `float64`
- `avg_preferential_tariff_pct` — `float64`
- `tariff_advantage_pp` — `float64`
- `buyer_biz_entry_days` — `float64`
- `buyer_biz_entry_cost_pct` — `float64`
- `buyer_gdp_mn_latest` — `float64`
- `buyer_gdp_pc_latest` — `float64`
- `buyer_population_latest` — `float64`
- `buyer_gdp_5y_cagr_pct` — `float64`
- `buyer_gdp_pc_5y_cagr_pct` — `float64`
- `buyer_population_5y_cagr_pct` — `float64`
- `buyer_investment_5y_avg_pct` — `float64`
- `buyer_savings_5y_avg_pct` — `float64`
- `buyer_macro_resilience_label` — `string`
- `attention_trade_share_pct` — `float64`
- `critical_trade_share_pct` — `float64`
- `product_concentration_hhi` — `float64`
- `top1_product_share_pct` — `float64`
- `top3_product_share_pct` — `float64`
- `risk_driver_labels` — `List`
- `attention_level` — `string`
- `primary_risk_reason` — `string`

## Coverage and size
- Coverage: 1995-2024 annual observations where available
- Records: 28,476
- CSV file size: 18 MB
- Release: 1.0.0
- SHA-256: `1518ac2a85276700ed7bf5993ed52036341a18abf6e562702b1f57257b74d74e`

## 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 = {
    "exporter_iso3": pa.type_for_alias("string"),
    "importer_iso3": pa.type_for_alias("string"),
    "all_history_lane_count": pa.type_for_alias("uint64"),
    "current_lane_count": pa.type_for_alias("uint64"),
    "current_product_count": pa.type_for_alias("uint64"),
    "first_observed_last_year": pa.type_for_alias("uint16"),
    "latest_data_year": pa.type_for_alias("uint16"),
    "current_trade_usd": pa.type_for_alias("double"),
    "attention_trade_usd": pa.type_for_alias("double"),
    "critical_trade_usd": pa.type_for_alias("double"),
    "high_volatility_trade_usd": pa.type_for_alias("double"),
    "unrecovered_drawdown_trade_usd": pa.type_for_alias("double"),
    "declining_demand_trade_usd": pa.type_for_alias("double"),
    "concentrated_market_trade_usd": pa.type_for_alias("double"),
    "access_friction_trade_usd": pa.type_for_alias("double"),
    "buyer_macro_weakness_trade_usd": pa.type_for_alias("double"),
    "critical_lane_count": pa.type_for_alias("uint64"),
    "high_attention_lane_count": pa.type_for_alias("uint64"),
    "high_volatility_lane_count": pa.type_for_alias("uint64"),
    "unrecovered_drawdown_lane_count": pa.type_for_alias("uint64"),
    "declining_demand_lane_count": pa.type_for_alias("uint64"),
    "concentrated_market_lane_count": pa.type_for_alias("uint64"),
    "access_friction_lane_count": pa.type_for_alias("uint64"),
    "trade_weighted_volatility_cv": pa.type_for_alias("double"),
    "trade_weighted_below_peak_pct": pa.type_for_alias("double"),
    "product_hhi_numerator": pa.type_for_alias("double"),
    "top3_product_trade_usd": pa.type_for_alias("double"),
    "top_product_hs6": pa.type_for_alias("string"),
    "top_product_trade_usd": pa.type_for_alias("double"),
    "top_product_description": pa.type_for_alias("string"),
    "top_attention_product_hs6": pa.type_for_alias("string"),
    "top_attention_product_reason": pa.type_for_alias("string"),
    "distance_km": pa.type_for_alias("double"),
    "shares_land_border": pa.type_for_alias("uint8"),
    "shares_official_language": pa.type_for_alias("uint8"),
    "common_spoken_language_score": pa.type_for_alias("double"),
    "has_reported_fta": pa.type_for_alias("uint8"),
    "avg_applied_tariff_pct": pa.type_for_alias("double"),
    "avg_mfn_tariff_pct": pa.type_for_alias("double"),
    "avg_preferential_tariff_pct": pa.type_for_alias("double"),
    "tariff_advantage_pp": pa.type_for_alias("double"),
    "buyer_biz_entry_days": pa.type_for_alias("double"),
    "buyer_biz_entry_cost_pct": pa.type_for_alias("double"),
    "buyer_gdp_mn_latest": pa.type_for_alias("double"),
    "buyer_gdp_pc_latest": pa.type_for_alias("double"),
    "buyer_population_latest": pa.type_for_alias("double"),
    "buyer_gdp_5y_cagr_pct": pa.type_for_alias("double"),
    "buyer_gdp_pc_5y_cagr_pct": pa.type_for_alias("double"),
    "buyer_population_5y_cagr_pct": pa.type_for_alias("double"),
    "buyer_investment_5y_avg_pct": pa.type_for_alias("double"),
    "buyer_savings_5y_avg_pct": pa.type_for_alias("double"),
    "buyer_macro_resilience_label": pa.type_for_alias("string"),
    "attention_trade_share_pct": pa.type_for_alias("double"),
    "critical_trade_share_pct": pa.type_for_alias("double"),
    "product_concentration_hhi": pa.type_for_alias("double"),
    "top1_product_share_pct": pa.type_for_alias("double"),
    "top3_product_share_pct": pa.type_for_alias("double"),
    "risk_driver_labels": pa.type_for_alias("string"),
    "attention_level": pa.type_for_alias("string"),
    "primary_risk_reason": pa.type_for_alias("string"),
}
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-route-risk-monitor-v1/
- Original dataset record: https://huggingface.co/datasets/yugalinks/import-export-route-risk-monitor-v1

---

Published by Yugalinks: https://www.yugalinks.org/datasets/v1/import-export/import-export-route-risk-monitor-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.
