Kossiesa commited on
Commit
c1677c8
·
verified ·
1 Parent(s): 58b0ef2

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +133 -32
README.md CHANGED
@@ -1,34 +1,135 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: country_name
5
- dtype: string
6
- - name: country_iso3
7
- dtype: string
8
- - name: partner_name
9
- dtype: string
10
- - name: partner_iso3
11
- dtype: string
12
- - name: year
13
- dtype: int64
14
- - name: flow
15
- dtype: string
16
- - name: trade_value_usd
17
- dtype: float64
18
- splits:
19
- - name: train
20
- num_bytes: 343320
21
- num_examples: 5478
22
- - name: test
23
- num_bytes: 85746
24
- num_examples: 1370
25
- download_size: 81359
26
- dataset_size: 429066
27
- configs:
28
- - config_name: default
29
- data_files:
30
- - split: train
31
- path: data/train-*
32
- - split: test
33
- path: data/test-*
34
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: other
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - tabular-classification
7
+ - tabular-regression
8
+ - time-series-forecasting
9
+ multilinguality: monolingual
10
+ size_categories:
11
+ - 1K<n<10K
12
+ tags:
13
+ - tabular
14
+ - africa
15
+ - un-comtrade
16
+ - international-merchandise-trade
17
+ - trade
18
+ - exports-imports
19
+ - hs
20
+ - bilateral
21
+ - time-series
22
+ pretty_name: "Benin — Exports by Trading Partner | Africa (UN Comtrade)"
 
 
 
 
 
 
 
 
 
 
 
23
  ---
24
+
25
+ # Benin — Exports by Trading Partner | Africa (UN Comtrade)
26
+
27
+ 🌍 **6,848 observations** · **1 Africa countries** · **2000–2023** · *Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
28
+
29
+ ![rows](https://img.shields.io/badge/rows-6,848-blue) ![countries](https://img.shields.io/badge/countries-1-green) ![years](https://img.shields.io/badge/years-2000–2023-orange) ![indicators](https://img.shields.io/badge/indicators-192-purple) ![license](https://img.shields.io/badge/license-other-lightgrey)
30
+
31
+ ## TL;DR
32
+
33
+ This dataset contains **6,848 observations** of `International merchandise trade` data across **1 Africa countries**, spanning **2000–2023**, covering **192 distinct indicators**.
34
+
35
+ ## About the source
36
+
37
+ - **Source:** [UN Comtrade](https://comtradeplus.un.org/)
38
+ - **Publisher:** United Nations Statistics Division (UN Comtrade)
39
+ - **License:** [other](https://comtradeplus.un.org/TermsOfUse)
40
+ - **Topic:** International merchandise trade
41
+
42
+ ## Geographic coverage
43
+
44
+ 1 Africa countries · top rows shown below, sorted by row count:
45
+
46
+ | Country | Rows | First year | Last year |
47
+ |---------|-----:|-----------:|----------:|
48
+ | `Benin` | 6,848 | 2000 | 2023 |
49
+
50
+ ## Indicators (sample)
51
+
52
+ - `Afghanistan` — Afghanistan
53
+ - `Albania` — Albania
54
+ - `Algeria` — Algeria
55
+ - `American Samoa` — American Samoa
56
+ - `Andorra` — Andorra
57
+ - `Angola` — Angola
58
+ - `Anguilla` — Anguilla
59
+ - `Antigua and Barbuda` — Antigua and Barbuda
60
+ - `Areas, nes` — Areas, nes
61
+ - `Argentina` — Argentina
62
+ - _... and 182 more indicators_
63
+
64
+ ## Schema
65
+
66
+ | Column | Type | Description | Example |
67
+ |--------|------|-------------|---------|
68
+ | `country_name` | `string` | — | `Benin` |
69
+ | `country_iso3` | `string` | — | `BEN` |
70
+ | `partner_name` | `string` | — | `Afghanistan` |
71
+ | `partner_iso3` | `string` | — | `AFG` |
72
+ | `year` | `int64` | — | `2000` |
73
+ | `flow` | `string` | — | `exports` |
74
+ | `trade_value_usd` | `float64` | — | `84867.0` |
75
+
76
+ ## Usage
77
+
78
+ ```python
79
+ from datasets import load_dataset
80
+
81
+ ds = load_dataset("electricsheepafrica/africa-comtrade-benin-exports-by-partner")
82
+ df = ds["train"].to_pandas()
83
+ print(df.head())
84
+ ```
85
+
86
+ ### Filter to one country
87
+
88
+ ```python
89
+ kenya = df[df["country_name"] == "KEN"]
90
+ ```
91
+
92
+ ### Time-series for a single indicator
93
+
94
+ ```python
95
+ sample = (df[df["partner_name"] == "Afghanistan"]
96
+ .sort_values("year"))
97
+ sample.plot(x="year", y="trade_value_usd", title="Afghanistan")
98
+ ```
99
+
100
+ ### Pivot to country × year matrix
101
+
102
+ ```python
103
+ matrix = (df[df["partner_name"] == "Afghanistan"]
104
+ .pivot_table(index="year", columns="country_name", values="trade_value_usd"))
105
+ print(matrix.tail())
106
+ ```
107
+
108
+ ## Citation
109
+
110
+ ```bibtex
111
+ @misc{africa_comtrade_benin_exports_by_partner_2023,
112
+ title = {Benin — Exports by Trading Partner | Africa (UN Comtrade)},
113
+ author = {United Nations Statistics Division (UN Comtrade)},
114
+ year = {2023},
115
+ url = {https://comtradeplus.un.org/},
116
+ publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
117
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-comtrade-benin-exports-by-partner}}
118
+ }
119
+ ```
120
+
121
+ ## License
122
+
123
+ Released under [other](https://comtradeplus.un.org/TermsOfUse).
124
+
125
+ Original data © United Nations Statistics Division (UN Comtrade). When using this dataset, please cite both the original source above and the Electric Sheep Africa repackaging.
126
+
127
+ ## About Electric Sheep
128
+
129
+ Electric Sheep Africa is part of the Electric Sheep mission: a unified, ML-ready data layer for Africa on HuggingFace. We pull data from authoritative open sources, normalize the schemas, package as Parquet, and publish with consistent dataset cards so researchers and developers can use `load_dataset()` to start working in seconds.
130
+
131
+ Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
132
+
133
+ ---
134
+
135
+ _Provenance: ingested 2026-06-17 via the Electric Sheep pipeline. Source URL: https://comtradeplus.un.org/_