# Spain exports by partner and HS6, 1995-2024

Annual merchandise exports from Spain to partner countries, recorded for HS6 products from 1995 to 2024.

## What one row represents
one year, country pair, and HS6 product

## Included data
- Annual import-export values
- Partner and HS6 identifiers
- Year-over-year and multi-year growth where provided

## Metric notes
- USD fields are monetary values denominated in US dollars.
- Country fields use three-letter ISO 3166-1 country codes.
- HS6 identifies a product at the six-digit Harmonized System level.
- Growth percentages compare reported values across the relevant periods; calculated and projected fields are identified in the schema.

## Fields
- `year` — `UInt16`
- `exporter_iso3` — `String`
- `importer_iso3` — `String`
- `hs_code` — `String`
- `export_value_usd` — `Float64`
- `yoy_growth_pct` — `Nullable(Float64)`
- `cagr_3y_pct` — `Nullable(Float64)`

## Coverage and size
- Coverage: 1995-2024 where reported
- Records: 8,347,772
- CSV file size: 641 MB
- SHA-256: `7fc7e319bab9839f802a3e1ef7f91b56379a0707a2dcbfb1a64b9d585ef85228`

## Files
- `data.csv` - complete dataset
- `manifest.json` - release metadata and checksums
- `schema.json` - field names, types, and metric notes
- `sample.json` - example records
- `README.md` - dataset documentation

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

column_types = {
    "year": pa.type_for_alias("uint16"),
    "exporter_iso3": pa.type_for_alias("string"),
    "importer_iso3": pa.type_for_alias("string"),
    "hs_code": pa.type_for_alias("string"),
    "export_value_usd": pa.type_for_alias("double"),
    "yoy_growth_pct": pa.type_for_alias("double"),
    "cagr_3y_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.
```

## Sources
- OECD Balanced International Merchandise Trade Statistics (BIMTS)
- OECD Terms & Conditions: https://www.oecd.org/termsandconditions/

---

Published by Yugalinks: https://www.yugalinks.org/datasets/v1/gold-batch-1/spain-exports-by-partner-and-hs6-1995-2024-esp-core-hs6-exporter

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.
