# Global Import-Export Partner Pair Summary (Reference snapshot)

A reference profile for exporter-importer country pairs, covering distance, shared geographic or institutional ties, trade agreements, and selected buyer-market indicators.

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

## Included measures and context
- Distance and shared-border/language indicators
- Reported trade-agreement and membership indicators
- Selected buyer economic and business-entry measures

## Metric notes
- 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`
- `distance_km` — `float64`
- `capital_distance_km` — `float64`
- `shares_land_border` — `uint8`
- `shares_official_language` — `uint8`
- `common_spoken_language_score` — `float64`
- `common_language_indicator` — `uint8`
- `shares_ethnic_language` — `uint8`
- `shared_common_colonizer` — `uint8`
- `shared_religion` — `uint8`
- `shared_legal_system` — `uint8`
- `has_wto_reported_fta` — `uint8`
- `buyer_is_wto_member` — `uint8`
- `buyer_is_eu_member` — `uint8`
- `buyer_biz_entry_days` — `float64`
- `buyer_biz_entry_cost` — `float64`
- `buyer_gdp_mn_latest` — `float64`
- `buyer_gdp_pc_latest` — `float64`
- `buyer_population_latest` — `float64`
- `buyer_gdp_source_year` — `uint16`
- `buyer_investment_rate` — `float64`
- `buyer_savings_rate` — `float64`
- `buyer_edu_secondary` — `float64`
- `buyer_edu_tertiary` — `float64`
- `buyer_gdp_mn_2030_proj` — `float64`
- `buyer_gdp_pc_2030_proj` — `float64`
- `buyer_population_2030` — `float64`
- `buyer_gdp_mn_growth_pct` — `float64`
- `buyer_gdp_pc_growth_pct` — `float64`
- `buyer_pop_growth_pct` — `float64`

## Coverage and size
- Coverage: Reference snapshot without a trade-year column
- Records: 50,176
- CSV file size: 8 MB
- Release: 1.0.0
- SHA-256: `8f8fa99fe889e7e5f344ed61b764ec8f4b25b803a1a074d2325b01716409de31`

## 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"),
    "distance_km": pa.type_for_alias("double"),
    "capital_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"),
    "common_language_indicator": pa.type_for_alias("uint8"),
    "shares_ethnic_language": pa.type_for_alias("uint8"),
    "shared_common_colonizer": pa.type_for_alias("uint8"),
    "shared_religion": pa.type_for_alias("uint8"),
    "shared_legal_system": pa.type_for_alias("uint8"),
    "has_wto_reported_fta": pa.type_for_alias("uint8"),
    "buyer_is_wto_member": pa.type_for_alias("uint8"),
    "buyer_is_eu_member": pa.type_for_alias("uint8"),
    "buyer_biz_entry_days": pa.type_for_alias("double"),
    "buyer_biz_entry_cost": 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_source_year": pa.type_for_alias("uint16"),
    "buyer_investment_rate": pa.type_for_alias("double"),
    "buyer_savings_rate": pa.type_for_alias("double"),
    "buyer_edu_secondary": pa.type_for_alias("double"),
    "buyer_edu_tertiary": pa.type_for_alias("double"),
    "buyer_gdp_mn_2030_proj": pa.type_for_alias("double"),
    "buyer_gdp_pc_2030_proj": pa.type_for_alias("double"),
    "buyer_population_2030": pa.type_for_alias("double"),
    "buyer_gdp_mn_growth_pct": pa.type_for_alias("double"),
    "buyer_gdp_pc_growth_pct": pa.type_for_alias("double"),
    "buyer_pop_growth_pct": pa.type_for_alias("double"),
}
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-partner-pair-summary-v1/
- Original dataset record: https://huggingface.co/datasets/yugalinks/import-export-partner-pair-summary-v1

---

Published by Yugalinks: https://www.yugalinks.org/datasets/v1/import-export/import-export-partner-pair-summary-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.
