# Global Import-Export Product Summary (Reference snapshot)

A reference list of product codes and descriptions, their HS chapter and heading, and available product characteristics such as price range and trade type.

## What one row represents
one product code

## Included measures and context
- HS code, description, chapter, and heading
- Product substitution-elasticity measure
- Price-range and trade-type labels where available

## Metric notes
- HS6 codes identify products at the six-digit Harmonized System level.

## 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`
- `hs_description` — `string`
- `hs_chapter` — `string`
- `hs_heading` — `string`
- `substitution_elasticity` — `float64`
- `price_range_label` — `string`
- `trade_type_label` — `string`

## Coverage and size
- Coverage: Reference snapshot without a trade-year column
- Records: 6,878
- CSV file size: 1.1 MB
- Release: 1.0.0
- SHA-256: `4eccf0b0902ce0a8f51f63a64cc1b60390f359ff4ea22ad45dd5b1205900f861`

## 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"),
    "hs_description": pa.type_for_alias("string"),
    "hs_chapter": pa.type_for_alias("string"),
    "hs_heading": pa.type_for_alias("string"),
    "substitution_elasticity": pa.type_for_alias("double"),
    "price_range_label": pa.type_for_alias("string"),
    "trade_type_label": 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-product-summary-v1/
- Original dataset record: https://huggingface.co/datasets/yugalinks/import-export-product-summary-v1

---

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