Olaroti commited on
Commit
1f6592c
·
verified ·
1 Parent(s): 5b40749

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +100 -104
README.md CHANGED
@@ -1,146 +1,142 @@
1
  ---
2
- annotations_creators:
3
- - no-annotation
4
- language_creators:
5
- - found
6
  language:
7
  - en
8
- license: cc-by-4.0
9
- multilinguality:
10
- - monolingual
11
- size_categories:
12
- - 1K<n<10K
13
- source_datasets:
14
- - original
15
  task_categories:
 
16
  - tabular-regression
17
- task_ids: []
 
 
18
  tags:
19
- - africa
20
- - humanitarian
21
- - hdx
22
- - electric-sheep-africa
23
- - economics
24
- - indicators
25
- - mwi
26
- pretty_name: "Malawi - External Debt"
27
- dataset_info:
28
- splits:
29
- - name: train
30
- num_examples: 2030
31
- - name: test
32
- num_examples: 507
 
33
  ---
34
 
35
- # Malawi - External Debt
36
-
37
- **Publisher:** World Bank Group · **Source:** [HDX](https://data.humdata.org/dataset/world-bank-external-debt-indicators-for-malawi) · **License:** `cc-by` · **Updated:** 2026-03-27
38
 
39
- ---
40
 
41
- ## Abstract
 
 
 
42
 
43
- Contains data from the World Bank's [data portal](http://data.worldbank.org/). There is also a [consolidated country dataset](https://data.humdata.org/dataset/world-bank-combined-indicators-for-malawi) on HDX.
44
 
45
- Debt statistics provide a detailed picture of debt stocks and flows of developing countries. Data presented as part of the Quarterly External Debt Statistics takes a closer look at the external debt of high-income countries and emerging markets to enable a more complete understanding of global financial flows. The Quarterly Public Sector Debt database provides further data on public sector valuation methods, debt instruments, and clearly defined tiers of debt for central, state and local government, as well as extra-budgetary agencies and funds. Data are gathered from national statistical organizations and central banks as well as by various major multilateral institutions and World Bank staff.
46
 
47
- Each row in this dataset represents country-level aggregates. Data was last updated on HDX on 2026-03-27. Geographic scope: **MWI**.
48
 
49
- *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
50
 
51
- ---
52
 
53
- ## Dataset Characteristics
54
 
55
- | | |
56
  |---|---|
57
- | **Domain** | Market and price monitoring |
58
- | **Unit of observation** | Country-level aggregates |
59
- | **Rows (total)** | 2,538 |
60
- | **Columns** | 8 (2 numeric, 6 categorical, 0 datetime) |
61
- | **Train split** | 2,030 rows |
62
- | **Test split** | 507 rows |
63
- | **Geographic scope** | MWI |
64
- | **Publisher** | World Bank Group |
65
- | **HDX last updated** | 2026-03-27 |
66
-
67
- ---
68
-
69
- ## Variables
70
-
71
- **Geographic** `country_name` (Malawi), `country_iso3` (MWI), `year` (range 1960.0–2024.0).
72
-
73
- **Outcome / Measurement** `value` (range -2279816889.2094–13163911110.6806).
74
-
75
- **Identifier / Metadata** — `indicator_name` (Grants, excluding technical cooperation (BoP, current US$), Net official development assistance received (current US$), Net ODA received per capita (current US$)), `indicator_code` (BX.GRT.EXTA.CD.WD, DT.ODA.ODAT.CD, DT.ODA.ODAT.PC.ZS), `esa_source` (HDX), `esa_processed` (2026-04-14).
76
-
77
- ---
78
-
79
- ## Quick Start
80
 
81
  ```python
82
  from datasets import load_dataset
83
 
84
- ds = load_dataset("electricsheepafrica/africa-world-bank-external-debt-indicators-for-malawi")
85
- train = ds["train"].to_pandas()
86
- test = ds["test"].to_pandas()
87
 
88
- print(train.shape)
89
- train.head()
 
 
90
  ```
91
 
92
- ---
93
-
94
- ## Schema
95
 
96
- | Column | Type | Null % | Range / Sample Values |
97
- |---|---|---|---|
98
- | `country_name` | object | 0.0% | Malawi |
99
- | `country_iso3` | object | 0.0% | MWI |
100
- | `year` | int64 | 0.0% | 1960.0 – 2024.0 (mean 1996.682) |
101
- | `indicator_name` | object | 0.0% | Grants, excluding technical cooperation (BoP, current US$), Net official development assistance received (current US$), Net ODA received per capita (current US$) |
102
- | `indicator_code` | object | 0.0% | BX.GRT.EXTA.CD.WD, DT.ODA.ODAT.CD, DT.ODA.ODAT.PC.ZS |
103
- | `value` | float64 | 0.0% | -2279816889.2094 – 13163911110.6806 (mean 310110507.0049) |
104
- | `esa_source` | object | 0.0% | HDX |
105
- | `esa_processed` | object | 0.0% | 2026-04-14 |
106
-
107
- ---
108
-
109
- ## Numeric Summary
110
-
111
- | Column | Min | Max | Mean | Median |
112
- |---|---|---|---|---|
113
- | `year` | 1960.0 | 2024.0 | 1996.682 | 1997.0 |
114
- | `value` | -2279816889.2094 | 13163911110.6806 | 310110507.0049 | 9201499.75 |
115
 
116
- ---
 
 
 
 
117
 
118
- ## Curation
119
 
120
- Raw data was downloaded from HDX via the CKAN API and converted to Parquet. Column names were lowercased and standardised to snake_case. Common missing-value markers (`N/A`, `null`, `none`, `-`, `unknown`, `no data`, `#N/A`) were unified to `NaN`. The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.
 
 
 
121
 
122
- ---
123
 
124
- ## Limitations
 
 
 
 
125
 
126
- - Data originates from World Bank Group and has not been independently validated by ESA.
127
- - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
128
- - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/world-bank-external-debt-indicators-for-malawi) for the publisher's own methodology notes and caveats.
129
 
130
- ---
 
 
 
131
 
132
  ## Citation
133
 
134
  ```bibtex
135
- @dataset{hdx_africa_world_bank_external_debt_indicators_for_malawi,
136
- title = {Malawi - External Debt},
137
- author = {World Bank Group},
138
- year = {2026},
139
- url = {https://data.humdata.org/dataset/world-bank-external-debt-indicators-for-malawi},
140
- note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
 
141
  }
142
  ```
143
 
 
 
 
 
 
 
 
 
 
 
144
  ---
145
 
146
- *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) Africa's ML dataset infrastructure. Lagos, Nigeria.*
 
1
  ---
2
+ license: cc-by-4.0
 
 
 
3
  language:
4
  - en
 
 
 
 
 
 
 
5
  task_categories:
6
+ - tabular-classification
7
  - tabular-regression
8
+ multilinguality: monolingual
9
+ size_categories:
10
+ - 1K<n<10K
11
  tags:
12
+ - "africa"
13
+ - "electric-sheep-africa"
14
+ - "open-data"
15
+ - "metadata-backed"
16
+ - "economics-finance"
17
+ - "parquet"
18
+ - "tabular"
19
+ - "text"
20
+ - "humanitarian"
21
+ - "hdx"
22
+ - "economics"
23
+ - "indicators"
24
+ - "mwi"
25
+ - "income"
26
+ pretty_name: "Malawi - External Debt | Africa (original)"
27
  ---
28
 
29
+ # Malawi - External Debt | Africa (original)
 
 
30
 
31
+ **Size category:** `1K<n<10K` - **Formats:** `parquet` - **Sector:** economics_finance - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
32
 
33
+ ![size](https://img.shields.io/badge/size-1K%3Cn%3C10K-blue)
34
+ ![sector](https://img.shields.io/badge/sector-economics_finance-green)
35
+ ![downloads](https://img.shields.io/badge/HF_downloads-12-orange)
36
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
37
 
38
+ ## TL;DR
39
 
40
+ 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.
41
 
42
+ ## What This Dataset Covers
43
 
44
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
45
 
46
+ Dataset context from the existing Hugging Face card: Malawi - External Debt Publisher: World Bank Group · Source: HDX · License: cc-by · Updated: 2026-03-27 Abstract Contains data from the World Bank's data portal. There is also a consolidated country dataset on HDX. Debt statistics provide a detailed picture of debt stocks and flows of developing countries. Data presented as part of the Quarterly External Debt Statistics takes a closer look at the external debt of high-income countries and emerging markets to enable a… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-world-bank-external-debt-indicators-for-malawi.
47
 
48
+ ## Dataset Profile
49
 
50
+ | Field | Value |
51
  |---|---|
52
+ | Hugging Face repo | [`electricsheepafrica/africa-world-bank-external-debt-indicators-for-malawi`](https://huggingface.co/datasets/electricsheepafrica/africa-world-bank-external-debt-indicators-for-malawi) |
53
+ | Sector | economics_finance |
54
+ | Topic tags | humanitarian, hdx, electric-sheep-africa, economics, indicators, mwi |
55
+ | Modalities | `tabular`, `text` |
56
+ | Formats | `parquet` |
57
+ | Size category | `1K<n<10K` |
58
+ | Countries | Malawi |
59
+ | ISO3 coverage | `MWI` |
60
+ | Last modified on HF | `2026-04-14 02:18:49+00:00` |
61
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
62
+
63
+ ## How To Read This Dataset
64
+
65
+ - Start from the repository files and the dataset viewer when available.
66
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
67
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
68
+ - Preserve missing values until you have a defensible imputation rule.
69
+
70
+ ## Usage
 
 
 
 
71
 
72
  ```python
73
  from datasets import load_dataset
74
 
75
+ ds = load_dataset("electricsheepafrica/africa-world-bank-external-debt-indicators-for-malawi")
76
+ print(ds)
 
77
 
78
+ split_name = next(iter(ds))
79
+ table = ds[split_name]
80
+ print(table.features)
81
+ print(table[:3])
82
  ```
83
 
84
+ ### Convert To Pandas When Tabular
 
 
85
 
86
+ ```python
87
+ from datasets import Dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
 
89
+ first_split = ds[next(iter(ds))]
90
+ if isinstance(first_split, Dataset):
91
+ df = first_split.to_pandas()
92
+ print(df.head())
93
+ ```
94
 
95
+ ## Data Quality Notes
96
 
97
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
98
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
99
+ - Metadata gaps from the inventory: upstream_publisher.
100
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
101
 
102
+ ## Source And Provenance
103
 
104
+ - **Source context:** original
105
+ - **Publisher/source attribution:** original
106
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
107
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-world-bank-external-debt-indicators-for-malawi](https://huggingface.co/datasets/electricsheepafrica/africa-world-bank-external-debt-indicators-for-malawi)
108
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
109
 
110
+ ## Suggested Analyses
 
 
111
 
112
+ - Inspect schema and missingness before modeling.
113
+ - Profile variables by geography, time, and subgroup columns where present.
114
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
115
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
116
 
117
  ## Citation
118
 
119
  ```bibtex
120
+ @misc{electric_sheep_africa_africa_world_bank_external_debt_indicators_for_malawi_2026,
121
+ title = {Malawi - External Debt | Africa (original)},
122
+ author = {original},
123
+ year = {2026},
124
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-world-bank-external-debt-indicators-for-malawi},
125
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
126
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-world-bank-external-debt-indicators-for-malawi}}
127
  }
128
  ```
129
 
130
+ ## License
131
+
132
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
133
+
134
+ 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.
135
+
136
+ ## About Electric Sheep Africa
137
+
138
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
139
+
140
  ---
141
 
142
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.