# USA, Puerto Rico and US Virgin Islands price trends by partner and HS6

Observed price trends for HS6 products imported by USA, Puerto Rico and US Virgin Islands across exporter partners.

## What one row represents
one year, exporter, importer, and HS6 product lane

## Included data
- Unit values and quantities
- Trade value and market price comparisons
- Price trend or position measures

## 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
- `exporter_iso3` — `FixedString(3)`
- `importer_iso3` — `FixedString(3)`
- `hs_code` — `FixedString(6)`
- `latest_year` — `UInt16`
- `latest_unit_value_usd_per_ton` — `Float64`
- `price_cagr_pct` — `Nullable(Float64)`
- `price_volatility_cv` — `Nullable(Float64)`
- `quantity_cagr_pct` — `Nullable(Float64)`
- `years_with_data` — `UInt8`

## Coverage and size
- Coverage: 1995-2024 where reported
- Records: 297,752
- CSV file size: 22.3 MB
- SHA-256: `249ad2bc40b2222610538a0f9260350d386bcb5b1e72f7e601085c950ea9ab39`

## 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 = {
    "exporter_iso3": pa.type_for_alias("string"),
    "importer_iso3": pa.type_for_alias("string"),
    "hs_code": pa.type_for_alias("string"),
    "latest_year": pa.type_for_alias("uint16"),
    "latest_unit_value_usd_per_ton": pa.type_for_alias("double"),
    "price_cagr_pct": pa.type_for_alias("double"),
    "price_volatility_cv": pa.type_for_alias("double"),
    "quantity_cagr_pct": pa.type_for_alias("double"),
    "years_with_data": pa.type_for_alias("uint8"),
}
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)
- Yugalinks calculated price measures from reported trade values and quantities
- OECD Terms & Conditions: https://www.oecd.org/termsandconditions/

---

Published by Yugalinks: https://www.yugalinks.org/datasets/v1/gold-batch-1/usa-puerto-rico-and-us-virgin-islands-price-trends-by-partner-and-hs6-usa-price-trend-importer

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.
