Kossisoroyce commited on
Commit
ba34f81
·
verified ·
1 Parent(s): 2d2c3ce

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +180 -76
README.md CHANGED
@@ -1,80 +1,184 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
- features:
4
- - name: iso3
5
- dtype: string
6
- - name: location
7
- dtype: string
8
- - name: dataid
9
- dtype: int64
10
- - name: indicator
11
- dtype: string
12
- - name: value
13
- dtype: float64
14
- - name: precision
15
- dtype: int64
16
- - name: dhs_countrycode
17
- dtype: string
18
- - name: countryname
19
- dtype: string
20
- - name: surveyyear
21
- dtype: int64
22
- - name: surveyid
23
- dtype: string
24
- - name: indicatorid
25
- dtype: string
26
- - name: indicatororder
27
- dtype: int64
28
- - name: indicatortype
29
- dtype: string
30
- - name: characteristicid
31
- dtype: int64
32
- - name: characteristicorder
33
- dtype: int64
34
- - name: characteristiccategory
35
- dtype: string
36
- - name: characteristiclabel
37
- dtype: string
38
- - name: byvariableid
39
- dtype: int64
40
- - name: byvariablelabel
41
- dtype: string
42
- - name: istotal
43
- dtype: int64
44
- - name: ispreferred
45
- dtype: int64
46
- - name: sdrid
47
- dtype: string
48
- - name: regionid
49
- dtype: string
50
- - name: surveyyearlabel
51
- dtype: float64
52
- - name: surveytype
53
- dtype: string
54
- - name: denominatorweighted
55
- dtype: float64
56
- - name: denominatorunweighted
57
- dtype: float64
58
- - name: levelrank
59
- dtype: float64
60
- - name: esa_source
61
- dtype: string
62
- - name: esa_processed
63
- dtype: string
64
  splits:
65
- - name: train
66
- num_bytes: 451556
67
- num_examples: 1394
68
- - name: test
69
- num_bytes: 112204
70
- num_examples: 349
71
- download_size: 82538
72
- dataset_size: 563760
73
- configs:
74
- - config_name: default
75
- data_files:
76
- - split: train
77
- path: data/train-*
78
- - split: test
79
- path: data/test-*
80
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language_creators:
5
+ - found
6
+ language:
7
+ - en
8
+ license: other
9
+ multilinguality:
10
+ - monolingual
11
+ size_categories:
12
+ - 1K<n<10K
13
+ source_datasets:
14
+ - original
15
+ task_categories:
16
+ - tabular-classification
17
+ - other
18
+ task_ids: []
19
+ tags:
20
+ - africa
21
+ - humanitarian
22
+ - hdx
23
+ - electric-sheep-africa
24
+ - demographics
25
+ - health
26
+ - zmb
27
+ pretty_name: "Zambia - Subnational Demographic and Health Data"
28
  dataset_info:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  splits:
30
+ - name: train
31
+ num_examples: 1394
32
+ - name: test
33
+ num_examples: 348
 
 
 
 
 
 
 
 
 
 
 
34
  ---
35
+
36
+ # Zambia - Subnational Demographic and Health Data
37
+
38
+ **Publisher:** The DHS Program · **Source:** [HDX](https://data.humdata.org/dataset/dhs-subnational-data-for-zambia) · **License:** `hdx-other` · **Updated:** 2026-04-20
39
+
40
+ ---
41
+
42
+ ## Abstract
43
+
44
+ Contains data from the [DHS data portal](https://api.dhsprogram.com/). There is also a dataset containing [Zambia - National Demographic and Health Data](https://data.humdata.org/dataset/dhs-data-for-zambia) on HDX.
45
+
46
+ The DHS Program Application Programming Interface (API) provides software developers access to aggregated indicator data from The Demographic and Health Surveys (DHS) Program. The API can be used to create various applications to help analyze, visualize, explore and disseminate data on population, health, HIV, and nutrition from more than 90 countries.
47
+
48
+ Each row in this dataset represents first-level administrative unit observations. Data was last updated on HDX on 2026-04-20. Geographic scope: **ZMB**.
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** | First-level administrative unit observations |
60
+ | **Rows (total)** | 1,743 |
61
+ | **Columns** | 30 (14 numeric, 16 categorical, 0 datetime) |
62
+ | **Train split** | 1,394 rows |
63
+ | **Test split** | 348 rows |
64
+ | **Geographic scope** | ZMB |
65
+ | **Publisher** | The DHS Program |
66
+ | **HDX last updated** | 2026-04-20 |
67
+
68
+ ---
69
+
70
+ ## Variables
71
+
72
+ **Geographic** — `iso3` (ZMB), `location` (Central, Copperbelt, Luapula), `dhs_countrycode` (ZM), `countryname` (Zambia), `surveyyear` (range 1992.0–2024.0) and 8 others.
73
+
74
+ **Outcome / Measurement** — `value` (range 0.0–254.0), `istotal` (range 0.0–0.0).
75
+
76
+ **Identifier / Metadata** — `dataid` (range 584.0–7980700.0), `indicatorid` (RH_DELP_C_DHF, CH_DIAT_C_ORT, FE_FRTR_W_TFR), `characteristicid` (range 456001.0–456012.0), `characteristiclabel` (Central, Copperbelt, Luapula), `ispreferred` (range 0.0–1.0) and 3 others.
77
+
78
+ **Other** — `indicator` (Place of delivery: Health facility, Treatment of diarrhea: Either ORS or RHF, Total fertility rate 15-49), `precision` (range 0.0–1.0), `indicatororder` (range 11763080.0–260321010.0), `characteristicorder` (range 1456001.0–1456012.0), `denominatorweighted` (range 24.0–5683.0) and 2 others.
79
+
80
+ ---
81
+
82
+ ## Quick Start
83
+
84
+ ```python
85
+ from datasets import load_dataset
86
+
87
+ ds = load_dataset("electricsheepafrica/africa-demographics-zambia")
88
+ train = ds["train"].to_pandas()
89
+ test = ds["test"].to_pandas()
90
+
91
+ print(train.shape)
92
+ train.head()
93
+ ```
94
+
95
+ ---
96
+
97
+ ## Schema
98
+
99
+ | Column | Type | Null % | Range / Sample Values |
100
+ |---|---|---|---|
101
+ | `iso3` | object | 0.0% | ZMB |
102
+ | `location` | object | 0.0% | Central, Copperbelt, Luapula |
103
+ | `dataid` | int64 | 0.0% | 584.0 – 7980700.0 (mean 4302204.7522) |
104
+ | `indicator` | object | 0.0% | Place of delivery: Health facility, Treatment of diarrhea: Either ORS or RHF, Total fertility rate 15-49 |
105
+ | `value` | float64 | 0.0% | 0.0 – 254.0 (mean 39.2798) |
106
+ | `precision` | int64 | 0.0% | 0.0 – 1.0 (mean 0.9243) |
107
+ | `dhs_countrycode` | object | 0.0% | ZM |
108
+ | `countryname` | object | 0.0% | Zambia |
109
+ | `surveyyear` | int64 | 0.0% | 1992.0 – 2024.0 (mean 2009.1664) |
110
+ | `surveyid` | object | 0.0% | ZM2013DHS, ZM2018DHS, ZM2024DHS |
111
+ | `indicatorid` | object | 0.0% | RH_DELP_C_DHF, CH_DIAT_C_ORT, FE_FRTR_W_TFR |
112
+ | `indicatororder` | int64 | 0.0% | 11763080.0 – 260321010.0 (mean 100486077.8026) |
113
+ | `indicatortype` | object | 0.0% | I |
114
+ | `characteristicid` | int64 | 0.0% | 456001.0 – 456012.0 (mean 456005.9484) |
115
+ | `characteristicorder` | int64 | 0.0% | 1456001.0 – 1456012.0 (mean 1456006.572) |
116
+ | `characteristiccategory` | object | 0.0% | Region |
117
+ | `characteristiclabel` | object | 0.0% | Central, Copperbelt, Luapula |
118
+ | `byvariableid` | int64 | 0.0% | 0.0 – 631002.0 (mean 21369.8847) |
119
+ | `byvariablelabel` | object | 71.3% | |
120
+ | `istotal` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) |
121
+ | `ispreferred` | int64 | 0.0% | 0.0 – 1.0 (mean 0.8698) |
122
+ | `sdrid` | object | 0.0% | |
123
+ | `regionid` | object | 0.0% | |
124
+ | `surveyyearlabel` | float64 | 30.1% | 1992.0 – 2024.0 (mean 2009.63) |
125
+ | `surveytype` | object | 0.0% | |
126
+ | `denominatorweighted` | float64 | 22.7% | 24.0 – 5683.0 (mean 738.317) |
127
+ | `denominatorunweighted` | float64 | 22.7% | 51.0 – 3620.0 (mean 741.9569) |
128
+ | `levelrank` | float64 | 16.6% | 1.0 – 1.0 (mean 1.0) |
129
+ | `esa_source` | object | 0.0% | |
130
+ | `esa_processed` | object | 0.0% | |
131
+
132
+ ---
133
+
134
+ ## Numeric Summary
135
+
136
+ | Column | Min | Max | Mean | Median |
137
+ |---|---|---|---|---|
138
+ | `dataid` | 584.0 | 7980700.0 | 4302204.7522 | 4315680.0 |
139
+ | `value` | 0.0 | 254.0 | 39.2798 | 32.6 |
140
+ | `precision` | 0.0 | 1.0 | 0.9243 | 1.0 |
141
+ | `surveyyear` | 1992.0 | 2024.0 | 2009.1664 | 2007.0 |
142
+ | `indicatororder` | 11763080.0 | 260321010.0 | 100486077.8026 | 94096040.0 |
143
+ | `characteristicid` | 456001.0 | 456012.0 | 456005.9484 | 456006.0 |
144
+ | `characteristicorder` | 1456001.0 | 1456012.0 | 1456006.572 | 1456006.0 |
145
+ | `byvariableid` | 0.0 | 631002.0 | 21369.8847 | 0.0 |
146
+ | `istotal` | 0.0 | 0.0 | 0.0 | 0.0 |
147
+ | `ispreferred` | 0.0 | 1.0 | 0.8698 | 1.0 |
148
+ | `surveyyearlabel` | 1992.0 | 2024.0 | 2009.63 | 2007.0 |
149
+ | `denominatorweighted` | 24.0 | 5683.0 | 738.317 | 615.0 |
150
+ | `denominatorunweighted` | 51.0 | 3620.0 | 741.9569 | 641.0 |
151
+ | `levelrank` | 1.0 | 1.0 | 1.0 | 1.0 |
152
+
153
+ ---
154
+
155
+ ## Curation
156
+
157
+ 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`. 2 column(s) with >80% missing values were removed: `cilow`, `cihigh`. 1 column(s) were cast from string to numeric or datetime based on parse-success rate (>85% threshold). The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.
158
+
159
+ ---
160
+
161
+ ## Limitations
162
+
163
+ - Data originates from The DHS Program and has not been independently validated by ESA.
164
+ - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
165
+ - The following columns have >20% missing values and should be treated with caution in modelling: `byvariablelabel`, `surveyyearlabel`, `denominatorweighted`, `denominatorunweighted`.
166
+ - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/dhs-subnational-data-for-zambia) for the publisher's own methodology notes and caveats.
167
+
168
+ ---
169
+
170
+ ## Citation
171
+
172
+ ```bibtex
173
+ @dataset{hdx_africa_demographics_zambia,
174
+ title = {Zambia - Subnational Demographic and Health Data},
175
+ author = {The DHS Program},
176
+ year = {2026},
177
+ url = {https://data.humdata.org/dataset/dhs-subnational-data-for-zambia},
178
+ note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
179
+ }
180
+ ```
181
+
182
+ ---
183
+
184
+ *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*