Kossisoroyce commited on
Commit
cf8da5b
·
verified ·
1 Parent(s): c11c390

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +117 -73
README.md CHANGED
@@ -1,103 +1,147 @@
1
  ---
2
- license: gpl
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  tags:
4
- - biology
5
- - public
6
- - health
 
7
  - gender
8
- - women
9
- - contraception
10
- - pregnancy
11
- size_categories:
12
- - 10K<n<100K
13
  dataset_info:
14
- features:
15
- - name: country_name
16
- dtype: string
17
- - name: country_iso3
18
- dtype: string
19
- - name: year
20
- dtype: int64
21
- - name: indicator_name
22
- dtype: string
23
- - name: indicator_code
24
- dtype: string
25
- - name: value
26
- dtype: float64
27
- - name: esa_source
28
- dtype: string
29
- - name: esa_processed
30
- dtype: string
31
  splits:
32
- - name: train
33
- num_bytes: 559211
34
- num_examples: 4200
35
- - name: test
36
- num_bytes: 140070
37
- num_examples: 1051
38
- download_size: 104277
39
- dataset_size: 699281
40
- configs:
41
- - config_name: default
42
- data_files:
43
- - split: train
44
- path: data/train-*
45
- - split: test
46
- path: data/test-*
47
  ---
48
- # Africa Unmet Need for Contraception Dataset
49
 
50
- ## Dataset Summary
51
- Annual share of women with unmet need for contraception among married women ages 15–49 for African countries. Data are provided as percentages. Cleaned and reformatted for ML pipelines with Africa-only subsets in long and pivot formats.
 
 
 
 
 
 
 
52
 
53
- - Indicator: World Bank Unmet need for contraception (% of married women ages 15–49) (`SP.UWT.TFRT`)
54
- - Geographic scope: 54 African countries (ISO‑3 list consistent across this repo)
55
- - Temporal coverage in files: 1960–2024 (years present; observations begin much later for most countries)
56
 
57
- ## Source & Licensing
58
- - Original data: https://data.worldbank.org/indicator/SP.UWT.TFRT
59
- Accessed 2025-08-10
60
- - License: Creative Commons Attribution 4.0 International (CC-BY-4.0)
61
 
62
  ---
63
 
64
- ## Intended Uses
65
- - Feature in demographic, public health, and social policy models
66
- - Trend analysis of family planning and reproductive health indicators
67
- - Input to cross-country forecasting or clustering (with caution about missingness)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
 
69
- Not suited for sub‑national analyses; indicator is national aggregate.
70
 
71
  ---
72
 
73
- ## Processing Summary
74
 
75
- We filled missing values using linear interpolation over time, followed by forward fill and backwards fill. Early years prior to a country’s first observed year are imputed via backwards fill; only countries with no observations remain all NaN.
 
76
 
 
 
 
77
 
78
- ## Coverage & Data Quality Notes
79
- - Overall non‑null share in long dataset: ~8.23% (289 of 3,510)
80
- - Earliest non‑missing observation overall: 1984
81
- - Countries with earliest original observation ≥ 2015: Angola, Somalia
82
- - Countries with no observations (entirely NaN across all years): Djibouti, Seychelles
83
- - Earlier years are imputed via backward fill for any country with at least one observation; treat imputed values with caution.
84
 
85
  ---
86
 
87
- ## Limitations & Caveats
88
- - Sparse historical coverage; many countries begin in the mid‑1980s or later, the latest first‑year is 2019.
89
- - Interpolation + forward fill + backward fill impute continuity across time; early years before the first observation are back‑filled. Consider sensitivity analyses excluding imputed years.
90
- - Indicator represents national aggregates; methodological updates by the World Bank may affect cross‑country comparability.
91
- - Use with caution in causal inference; consider triangulating with survey microdata where available.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
 
93
  ---
94
 
95
  ## Citation
96
- > World Bank. *Unmet need for contraception (% of married women ages 15–49)* (`SP.UWT.TFRT`).
97
 
98
- > Electric Sheep (2025). *Africa Unmet Need for Contraception ML Dataset*.
 
 
 
 
 
 
 
 
99
 
100
  ---
101
 
102
- ## Contact
103
- Questions or issues: `kossisoroyce@gmail.com`.
 
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-classification
17
+ - tabular-regression
18
+ task_ids: []
19
  tags:
20
+ - africa
21
+ - humanitarian
22
+ - hdx
23
+ - electric-sheep-africa
24
  - gender
25
+ - indicators
26
+ - mar
27
+ pretty_name: "Morocco - Gender"
 
 
28
  dataset_info:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  splits:
30
+ - name: train
31
+ num_examples: 4200
32
+ - name: test
33
+ num_examples: 1050
 
 
 
 
 
 
 
 
 
 
 
34
  ---
 
35
 
36
+ # Morocco - Gender
37
+
38
+ **Publisher:** World Bank Group · **Source:** [HDX](https://data.humdata.org/dataset/world-bank-gender-indicators-for-morocco) · **License:** `cc-by` · **Updated:** 2026-03-27
39
+
40
+ ---
41
+
42
+ ## Abstract
43
+
44
+ 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-morocco) on HDX.
45
 
46
+ Gender equality is a core development objective in its own right. It is also smart development policy and sound business practice. It is integral to economic growth, business growth and good development outcomes. Gender equality can boost productivity, enhance prospects for the next generation, build resilience, and make institutions more representative and effective. In December 2015, the World Bank Group Board discussed our new Gender Equality Strategy 2016-2023, which aims to address persistent gaps and proposed a sharpened focus on more and better gender data. The Bank Group is continually scaling up commitments and expanding partnerships to fill significant gaps in gender data. The database hosts the latest sex-disaggregated data and gender statistics covering demography, education, health, access to economic opportunities, public life and decision-making, and agency.
 
 
47
 
48
+ Each row in this dataset represents country-level aggregates. Data was last updated on HDX on 2026-03-27. Geographic scope: **MAR**.
49
+
50
+ *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
 
51
 
52
  ---
53
 
54
+ ## Dataset Characteristics
55
+
56
+ | | |
57
+ |---|---|
58
+ | **Domain** | Public health |
59
+ | **Unit of observation** | Country-level aggregates |
60
+ | **Rows (total)** | 5,251 |
61
+ | **Columns** | 8 (2 numeric, 6 categorical, 0 datetime) |
62
+ | **Train split** | 4,200 rows |
63
+ | **Test split** | 1,050 rows |
64
+ | **Geographic scope** | MAR |
65
+ | **Publisher** | World Bank Group |
66
+ | **HDX last updated** | 2026-03-27 |
67
+
68
+ ---
69
+
70
+ ## Variables
71
+
72
+ **Geographic** — `country_name` (Morocco), `country_iso3` (MAR), `year` (range 1960.0–2025.0).
73
+
74
+ **Outcome / Measurement** — `value` (range 0.0–3034679.0).
75
 
76
+ **Identifier / Metadata** `indicator_name` (Age population, age 00, female, Age population, age 00, male, Age population, age 02, female), `indicator_code` (SP.POP.AG00.FE.IN, SP.POP.AG00.MA.IN, SP.POP.AG02.FE.IN), `esa_source` (HDX), `esa_processed` (2026-04-27).
77
 
78
  ---
79
 
80
+ ## Quick Start
81
 
82
+ ```python
83
+ from datasets import load_dataset
84
 
85
+ ds = load_dataset("electricsheepafrica/africa-gender-morocco")
86
+ train = ds["train"].to_pandas()
87
+ test = ds["test"].to_pandas()
88
 
89
+ print(train.shape)
90
+ train.head()
91
+ ```
 
 
 
92
 
93
  ---
94
 
95
+ ## Schema
96
+
97
+ | Column | Type | Null % | Range / Sample Values |
98
+ |---|---|---|---|
99
+ | `country_name` | object | 0.0% | Morocco |
100
+ | `country_iso3` | object | 0.0% | MAR |
101
+ | `year` | int64 | 0.0% | 1960.0 – 2025.0 (mean 1999.1811) |
102
+ | `indicator_name` | object | 0.0% | Age population, age 00, female, Age population, age 00, male, Age population, age 02, female |
103
+ | `indicator_code` | object | 0.0% | SP.POP.AG00.FE.IN, SP.POP.AG00.MA.IN, SP.POP.AG02.FE.IN |
104
+ | `value` | float64 | 0.0% | 0.0 – 3034679.0 (mean 71290.1719) |
105
+ | `esa_source` | object | 0.0% | HDX |
106
+ | `esa_processed` | object | 0.0% | 2026-04-27 |
107
+
108
+ ---
109
+
110
+ ## Numeric Summary
111
+
112
+ | Column | Min | Max | Mean | Median |
113
+ |---|---|---|---|---|
114
+ | `year` | 1960.0 | 2025.0 | 1999.1811 | 2001.0 |
115
+ | `value` | 0.0 | 3034679.0 | 71290.1719 | 47.0287 |
116
+
117
+ ---
118
+
119
+ ## Curation
120
+
121
+ 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.
122
+
123
+ ---
124
+
125
+ ## Limitations
126
+
127
+ - Data originates from World Bank Group and has not been independently validated by ESA.
128
+ - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
129
+ - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/world-bank-gender-indicators-for-morocco) for the publisher's own methodology notes and caveats.
130
 
131
  ---
132
 
133
  ## Citation
 
134
 
135
+ ```bibtex
136
+ @dataset{hdx_africa_gender_morocco,
137
+ title = {Morocco - Gender},
138
+ author = {World Bank Group},
139
+ year = {2026},
140
+ url = {https://data.humdata.org/dataset/world-bank-gender-indicators-for-morocco},
141
+ note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
142
+ }
143
+ ```
144
 
145
  ---
146
 
147
+ *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*