Olaroti commited on
Commit
35b5e0c
·
verified ·
1 Parent(s): 72db92e

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +135 -31
README.md CHANGED
@@ -1,33 +1,137 @@
1
  ---
2
- license: gpl
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
4
- # Africa: Merchandise trade (% of GDP)
5
-
6
- ## Dataset summary
7
- - This dataset provides values for "Merchandise trade (% of GDP)" across African countries, standardized and made ML-ready.
8
- - Geographic scope: 54 African countries.
9
- - Temporal coverage: 1960–2024 (annual).
10
- - Units: As defined by the World Bank indicator.
11
-
12
- ## Source & licensing
13
- - Source: World Bank – World Development Indicators (WDI), Indicator code: `TG.VAL.TOTL.GD.ZS`.
14
- - License: World Bank Open Data terms. Users are responsible for compliance with the World Bank Data Terms of Use.
15
-
16
- ## Intended uses
17
- - Cross-country analyses and visualization related to trade, logistics, and economic indicators.
18
- - As an input feature for ML models in trade, development, and economic domains.
19
- - Educational and exploratory data analysis.
20
-
21
- Use with caution for early years and countries with imputed values.
22
-
23
- ## Processing summary
24
- Missing values in the pivot were handled via:
25
- - Linear interpolation along years (`limit_direction="both"`)
26
- - Forward fill
27
- - Backward fill
28
- Countries with no observations across all years remain entirely NaN.
29
-
30
- ## Coverage and data quality notes
31
- - Earliest non-missing observation (across all countries): 1960.
32
- - Countries with no observations (all NaN in pivot):
33
- - (none).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: other
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - tabular-classification
7
+ - tabular-regression
8
+ multilinguality: monolingual
9
+ size_categories:
10
+ - n<1K
11
+ tags:
12
+ - "africa"
13
+ - "electric-sheep-africa"
14
+ - "open-data"
15
+ - "metadata-backed"
16
+ - "economics-finance"
17
+ - "csv"
18
+ - "tabular"
19
+ - "trade"
20
+ - "gdp"
21
+ pretty_name: "Merchandise trade percentage of GDP Africa | Africa (World Bank)"
22
  ---
23
+
24
+ # Merchandise trade percentage of GDP Africa | Africa (World Bank)
25
+
26
+ **Size category:** `n<1K` - **Formats:** `csv` - **Sector:** economics_finance - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
27
+
28
+ ![size](https://img.shields.io/badge/size-n%3C1K-blue)
29
+ ![sector](https://img.shields.io/badge/sector-economics_finance-green)
30
+ ![downloads](https://img.shields.io/badge/HF_downloads-14-orange)
31
+ ![license](https://img.shields.io/badge/license-other-lightgrey)
32
+
33
+ ## TL;DR
34
+
35
+ This dataset is part of the Electric Sheep Africa catalog on Hugging Face. It is indexed for African data discovery with standardized metadata, loading guidance, provenance notes, and analyst-oriented context.
36
+
37
+ ## What This Dataset Covers
38
+
39
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
40
+
41
+ Dataset context from the existing Hugging Face card: Africa: Merchandise trade (% of GDP) Dataset summary This dataset provides values for "Merchandise trade (% of GDP)" across African countries, standardized and made ML-ready. Geographic scope: 54 African countries. Temporal coverage: 1960–2024 (annual). Units: As defined by the World Bank indicator. Source & licensing Source: World Bank – World Development Indicators (WDI), Indicator code: TG.VAL.TOTL.GD.ZS. License: World Bank Open Data terms. Users are… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/Merchandise-trade-percentage-of-GDP-Africa.
42
+
43
+ ## Dataset Profile
44
+
45
+ | Field | Value |
46
+ |---|---|
47
+ | Hugging Face repo | [`electricsheepafrica/Merchandise-trade-percentage-of-GDP-Africa`](https://huggingface.co/datasets/electricsheepafrica/Merchandise-trade-percentage-of-GDP-Africa) |
48
+ | Sector | economics_finance |
49
+ | Topic tags | economics_finance |
50
+ | Modalities | `tabular` |
51
+ | Formats | `csv` |
52
+ | Size category | `n<1K` |
53
+ | Countries | Africa-wide or source-defined African coverage |
54
+ | ISO3 coverage | `not declared` |
55
+ | Last modified on HF | `2025-08-17 13:12:07+00:00` |
56
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
57
+
58
+ ## How To Read This Dataset
59
+
60
+ - Start from the repository files and the dataset viewer when available.
61
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
62
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
63
+ - Preserve missing values until you have a defensible imputation rule.
64
+
65
+ ## Usage
66
+
67
+ ```python
68
+ from datasets import load_dataset
69
+
70
+ ds = load_dataset("electricsheepafrica/Merchandise-trade-percentage-of-GDP-Africa")
71
+ print(ds)
72
+
73
+ split_name = next(iter(ds))
74
+ table = ds[split_name]
75
+ print(table.features)
76
+ print(table[:3])
77
+ ```
78
+
79
+ ### Convert To Pandas When Tabular
80
+
81
+ ```python
82
+ from datasets import Dataset
83
+
84
+ first_split = ds[next(iter(ds))]
85
+ if isinstance(first_split, Dataset):
86
+ df = first_split.to_pandas()
87
+ print(df.head())
88
+ ```
89
+
90
+ ## Data Quality Notes
91
+
92
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
93
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
94
+ - Metadata gaps from the inventory: country, upstream_publisher, language.
95
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
96
+
97
+ ## Source And Provenance
98
+
99
+ - **Source context:** World Bank
100
+ - **Publisher/source attribution:** World Bank open data
101
+ - **License:** gpl
102
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/Merchandise-trade-percentage-of-GDP-Africa](https://huggingface.co/datasets/electricsheepafrica/Merchandise-trade-percentage-of-GDP-Africa)
103
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
104
+
105
+ ## Suggested Analyses
106
+
107
+ - Inspect schema and missingness before modeling.
108
+ - Profile variables by geography, time, and subgroup columns where present.
109
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
110
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
111
+
112
+ ## Citation
113
+
114
+ ```bibtex
115
+ @misc{electric_sheep_africa_merchandise_trade_percentage_of_gdp_africa_2026,
116
+ title = {Merchandise trade percentage of GDP Africa | Africa (World Bank)},
117
+ author = {World Bank open data},
118
+ year = {2026},
119
+ url = {https://huggingface.co/datasets/electricsheepafrica/Merchandise-trade-percentage-of-GDP-Africa},
120
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
121
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/Merchandise-trade-percentage-of-GDP-Africa}}
122
+ }
123
+ ```
124
+
125
+ ## License
126
+
127
+ Released under gpl.
128
+
129
+ Original source rights remain with the original publisher or data provider. Electric Sheep Africa engineering standardizes discovery metadata, documentation, and usage guidance for analysis on Hugging Face.
130
+
131
+ ## About Electric Sheep Africa
132
+
133
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
134
+
135
+ ---
136
+
137
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.