Add README.md
Browse files
README.md
CHANGED
|
@@ -9,12 +9,11 @@ license: other
|
|
| 9 |
multilinguality:
|
| 10 |
- monolingual
|
| 11 |
size_categories:
|
| 12 |
-
-
|
| 13 |
source_datasets:
|
| 14 |
- original
|
| 15 |
task_categories:
|
| 16 |
- tabular-classification
|
| 17 |
-
- other
|
| 18 |
task_ids: []
|
| 19 |
tags:
|
| 20 |
- africa
|
|
@@ -24,98 +23,28 @@ tags:
|
|
| 24 |
- demographics
|
| 25 |
- health
|
| 26 |
- zmb
|
| 27 |
-
pretty_name: Zambia -
|
| 28 |
dataset_info:
|
| 29 |
-
features:
|
| 30 |
-
- name: iso3
|
| 31 |
-
dtype: string
|
| 32 |
-
- name: dataid
|
| 33 |
-
dtype: int64
|
| 34 |
-
- name: indicator
|
| 35 |
-
dtype: string
|
| 36 |
-
- name: value
|
| 37 |
-
dtype: float64
|
| 38 |
-
- name: precision
|
| 39 |
-
dtype: int64
|
| 40 |
-
- name: dhs_countrycode
|
| 41 |
-
dtype: string
|
| 42 |
-
- name: countryname
|
| 43 |
-
dtype: string
|
| 44 |
-
- name: surveyyear
|
| 45 |
-
dtype: int64
|
| 46 |
-
- name: surveyid
|
| 47 |
-
dtype: string
|
| 48 |
-
- name: indicatorid
|
| 49 |
-
dtype: string
|
| 50 |
-
- name: indicatororder
|
| 51 |
-
dtype: int64
|
| 52 |
-
- name: indicatortype
|
| 53 |
-
dtype: string
|
| 54 |
-
- name: characteristicid
|
| 55 |
-
dtype: int64
|
| 56 |
-
- name: characteristicorder
|
| 57 |
-
dtype: int64
|
| 58 |
-
- name: characteristiccategory
|
| 59 |
-
dtype: string
|
| 60 |
-
- name: characteristiclabel
|
| 61 |
-
dtype: string
|
| 62 |
-
- name: byvariableid
|
| 63 |
-
dtype: int64
|
| 64 |
-
- name: byvariablelabel
|
| 65 |
-
dtype: string
|
| 66 |
-
- name: istotal
|
| 67 |
-
dtype: int64
|
| 68 |
-
- name: ispreferred
|
| 69 |
-
dtype: int64
|
| 70 |
-
- name: sdrid
|
| 71 |
-
dtype: string
|
| 72 |
-
- name: surveyyearlabel
|
| 73 |
-
dtype: string
|
| 74 |
-
- name: surveytype
|
| 75 |
-
dtype: string
|
| 76 |
-
- name: denominatorweighted
|
| 77 |
-
dtype: float64
|
| 78 |
-
- name: denominatorunweighted
|
| 79 |
-
dtype: float64
|
| 80 |
-
- name: cilow
|
| 81 |
-
dtype: float64
|
| 82 |
-
- name: cihigh
|
| 83 |
-
dtype: float64
|
| 84 |
-
- name: esa_source
|
| 85 |
-
dtype: string
|
| 86 |
-
- name: esa_processed
|
| 87 |
-
dtype: string
|
| 88 |
splits:
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
num_bytes: 12592
|
| 94 |
-
num_examples: 42
|
| 95 |
-
download_size: 33292
|
| 96 |
-
dataset_size: 61022
|
| 97 |
-
configs:
|
| 98 |
-
- config_name: default
|
| 99 |
-
data_files:
|
| 100 |
-
- split: train
|
| 101 |
-
path: data/train-*
|
| 102 |
-
- split: test
|
| 103 |
-
path: data/test-*
|
| 104 |
---
|
| 105 |
|
| 106 |
-
# Zambia -
|
| 107 |
|
| 108 |
-
**Publisher:** The DHS Program · **Source:** [HDX](https://data.humdata.org/dataset/dhs-
|
| 109 |
|
| 110 |
---
|
| 111 |
|
| 112 |
## Abstract
|
| 113 |
|
| 114 |
-
Contains data from the [DHS data portal](https://api.dhsprogram.com/). There is also a dataset containing [Zambia -
|
| 115 |
|
| 116 |
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.
|
| 117 |
|
| 118 |
-
Each row in this dataset represents
|
| 119 |
|
| 120 |
*Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
|
| 121 |
|
|
@@ -126,11 +55,11 @@ Each row in this dataset represents first-level administrative unit observations
|
|
| 126 |
| | |
|
| 127 |
|---|---|
|
| 128 |
| **Domain** | Public health |
|
| 129 |
-
| **Unit of observation** |
|
| 130 |
-
| **Rows (total)** |
|
| 131 |
-
| **Columns** |
|
| 132 |
-
| **Train split** |
|
| 133 |
-
| **Test split** |
|
| 134 |
| **Geographic scope** | ZMB |
|
| 135 |
| **Publisher** | The DHS Program |
|
| 136 |
| **HDX last updated** | 2026-04-20 |
|
|
@@ -139,13 +68,13 @@ Each row in this dataset represents first-level administrative unit observations
|
|
| 139 |
|
| 140 |
## Variables
|
| 141 |
|
| 142 |
-
**Geographic** — `iso3` (ZMB), `
|
| 143 |
|
| 144 |
-
**Outcome / Measurement** — `value` (range 0.
|
| 145 |
|
| 146 |
-
**Identifier / Metadata** — `dataid` (range
|
| 147 |
|
| 148 |
-
**Other** — `indicator` (Place of delivery: Health facility, Treatment of diarrhea: Either ORS or RHF,
|
| 149 |
|
| 150 |
---
|
| 151 |
|
|
@@ -169,33 +98,32 @@ train.head()
|
|
| 169 |
| Column | Type | Null % | Range / Sample Values |
|
| 170 |
|---|---|---|---|
|
| 171 |
| `iso3` | object | 0.0% | ZMB |
|
| 172 |
-
| `
|
| 173 |
-
| `
|
| 174 |
-
| `
|
| 175 |
-
| `
|
| 176 |
-
| `precision` | int64 | 0.0% | 0.0 – 1.0 (mean 0.9243) |
|
| 177 |
| `dhs_countrycode` | object | 0.0% | ZM |
|
| 178 |
| `countryname` | object | 0.0% | Zambia |
|
| 179 |
-
| `surveyyear` | int64 | 0.0% | 1992.0 – 2024.0 (mean
|
| 180 |
-
| `surveyid` | object | 0.0% |
|
| 181 |
-
| `indicatorid` | object | 0.0% | RH_DELP_C_DHF, CH_DIAT_C_ORT,
|
| 182 |
-
| `indicatororder` | int64 | 0.0% | 11763080.0 – 260321010.0 (mean
|
| 183 |
| `indicatortype` | object | 0.0% | I |
|
| 184 |
-
| `characteristicid` | int64 | 0.0% |
|
| 185 |
-
| `characteristicorder` | int64 | 0.0% |
|
| 186 |
-
| `characteristiccategory` | object | 0.0% |
|
| 187 |
-
| `characteristiclabel` | object | 0.0% |
|
| 188 |
-
| `byvariableid` | int64 | 0.0% | 0.0 – 631002.0 (mean
|
| 189 |
-
| `byvariablelabel` | object |
|
| 190 |
-
| `istotal` | int64 | 0.0% |
|
| 191 |
-
| `ispreferred` | int64 | 0.0% | 0.0 – 1.0 (mean 0.
|
| 192 |
| `sdrid` | object | 0.0% | |
|
| 193 |
-
| `
|
| 194 |
-
| `surveyyearlabel` | float64 | 30.1% | 1992.0 – 2024.0 (mean 2009.63) |
|
| 195 |
| `surveytype` | object | 0.0% | |
|
| 196 |
-
| `denominatorweighted` | float64 |
|
| 197 |
-
| `denominatorunweighted` | float64 |
|
| 198 |
-
| `
|
|
|
|
| 199 |
| `esa_source` | object | 0.0% | |
|
| 200 |
| `esa_processed` | object | 0.0% | |
|
| 201 |
|
|
@@ -205,26 +133,26 @@ train.head()
|
|
| 205 |
|
| 206 |
| Column | Min | Max | Mean | Median |
|
| 207 |
|---|---|---|---|---|
|
| 208 |
-
| `dataid` |
|
| 209 |
-
| `value` | 0.
|
| 210 |
-
| `precision` | 0.0 | 1.0 | 0.
|
| 211 |
-
| `surveyyear` | 1992.0 | 2024.0 |
|
| 212 |
-
| `indicatororder` | 11763080.0 | 260321010.0 |
|
| 213 |
-
| `characteristicid` |
|
| 214 |
-
| `characteristicorder` |
|
| 215 |
-
| `byvariableid` | 0.0 | 631002.0 |
|
| 216 |
-
| `istotal` |
|
| 217 |
-
| `ispreferred` | 0.0 | 1.0 | 0.
|
| 218 |
-
| `
|
| 219 |
-
| `
|
| 220 |
-
| `
|
| 221 |
-
| `
|
| 222 |
|
| 223 |
---
|
| 224 |
|
| 225 |
## Curation
|
| 226 |
|
| 227 |
-
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: `
|
| 228 |
|
| 229 |
---
|
| 230 |
|
|
@@ -232,8 +160,8 @@ Raw data was downloaded from HDX via the CKAN API and converted to Parquet. Colu
|
|
| 232 |
|
| 233 |
- Data originates from The DHS Program and has not been independently validated by ESA.
|
| 234 |
- Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
|
| 235 |
-
- The following columns have >20% missing values and should be treated with caution in modelling: `byvariablelabel`, `
|
| 236 |
-
- Refer to the [original HDX dataset page](https://data.humdata.org/dataset/dhs-
|
| 237 |
|
| 238 |
---
|
| 239 |
|
|
@@ -241,10 +169,10 @@ Raw data was downloaded from HDX via the CKAN API and converted to Parquet. Colu
|
|
| 241 |
|
| 242 |
```bibtex
|
| 243 |
@dataset{hdx_africa_demographics_zambia,
|
| 244 |
-
title = {Zambia -
|
| 245 |
author = {The DHS Program},
|
| 246 |
year = {2026},
|
| 247 |
-
url = {https://data.humdata.org/dataset/dhs-
|
| 248 |
note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
|
| 249 |
}
|
| 250 |
```
|
|
|
|
| 9 |
multilinguality:
|
| 10 |
- monolingual
|
| 11 |
size_categories:
|
| 12 |
+
- n<1K
|
| 13 |
source_datasets:
|
| 14 |
- original
|
| 15 |
task_categories:
|
| 16 |
- tabular-classification
|
|
|
|
| 17 |
task_ids: []
|
| 18 |
tags:
|
| 19 |
- africa
|
|
|
|
| 23 |
- demographics
|
| 24 |
- health
|
| 25 |
- zmb
|
| 26 |
+
pretty_name: "Zambia - National Demographic and Health Data"
|
| 27 |
dataset_info:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
splits:
|
| 29 |
+
- name: train
|
| 30 |
+
num_examples: 164
|
| 31 |
+
- name: test
|
| 32 |
+
num_examples: 41
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
---
|
| 34 |
|
| 35 |
+
# Zambia - National Demographic and Health Data
|
| 36 |
|
| 37 |
+
**Publisher:** The DHS Program · **Source:** [HDX](https://data.humdata.org/dataset/dhs-data-for-zambia) · **License:** `hdx-other` · **Updated:** 2026-04-20
|
| 38 |
|
| 39 |
---
|
| 40 |
|
| 41 |
## Abstract
|
| 42 |
|
| 43 |
+
Contains data from the [DHS data portal](https://api.dhsprogram.com/). There is also a dataset containing [Zambia - Subnational Demographic and Health Data](https://data.humdata.org/dataset/dhs-subnational-data-for-zambia) on HDX.
|
| 44 |
|
| 45 |
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.
|
| 46 |
|
| 47 |
+
Each row in this dataset represents country-level aggregates. Data was last updated on HDX on 2026-04-20. Geographic scope: **ZMB**.
|
| 48 |
|
| 49 |
*Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
|
| 50 |
|
|
|
|
| 55 |
| | |
|
| 56 |
|---|---|
|
| 57 |
| **Domain** | Public health |
|
| 58 |
+
| **Unit of observation** | Country-level aggregates |
|
| 59 |
+
| **Rows (total)** | 206 |
|
| 60 |
+
| **Columns** | 29 (14 numeric, 15 categorical, 0 datetime) |
|
| 61 |
+
| **Train split** | 164 rows |
|
| 62 |
+
| **Test split** | 41 rows |
|
| 63 |
| **Geographic scope** | ZMB |
|
| 64 |
| **Publisher** | The DHS Program |
|
| 65 |
| **HDX last updated** | 2026-04-20 |
|
|
|
|
| 68 |
|
| 69 |
## Variables
|
| 70 |
|
| 71 |
+
**Geographic** — `iso3` (ZMB), `dhs_countrycode` (ZM), `countryname` (Zambia), `surveyyear` (range 1992.0–2024.0), `surveyid` (ZM2018DHS, ZM2024DHS, ZM2007DHS) and 6 others.
|
| 72 |
|
| 73 |
+
**Outcome / Measurement** — `value` (range 0.4–729.0), `istotal` (range 1.0–1.0).
|
| 74 |
|
| 75 |
+
**Identifier / Metadata** — `dataid` (range 41515.0–834693.0), `indicatorid` (RH_DELP_C_DHF, CH_DIAT_C_ORT, CM_ECMR_C_IMR), `characteristicid` (range 1000.0–10000.0), `characteristiclabel` (Total, Total 15-49), `ispreferred` (range 0.0–1.0) and 3 others.
|
| 76 |
|
| 77 |
+
**Other** — `indicator` (Place of delivery: Health facility, Treatment of diarrhea: Either ORS or RHF, Infant mortality rate), `precision` (range 0.0–1.0), `indicatororder` (range 11763080.0–260321010.0), `characteristicorder` (range 0.0–10000.0), `denominatorweighted` (range 745.0–27859.0) and 3 others.
|
| 78 |
|
| 79 |
---
|
| 80 |
|
|
|
|
| 98 |
| Column | Type | Null % | Range / Sample Values |
|
| 99 |
|---|---|---|---|
|
| 100 |
| `iso3` | object | 0.0% | ZMB |
|
| 101 |
+
| `dataid` | int64 | 0.0% | 41515.0 – 834693.0 (mean 483738.1456) |
|
| 102 |
+
| `indicator` | object | 0.0% | Place of delivery: Health facility, Treatment of diarrhea: Either ORS or RHF, Infant mortality rate |
|
| 103 |
+
| `value` | float64 | 0.0% | 0.4 – 729.0 (mean 58.3112) |
|
| 104 |
+
| `precision` | int64 | 0.0% | 0.0 – 1.0 (mean 0.8252) |
|
|
|
|
| 105 |
| `dhs_countrycode` | object | 0.0% | ZM |
|
| 106 |
| `countryname` | object | 0.0% | Zambia |
|
| 107 |
+
| `surveyyear` | int64 | 0.0% | 1992.0 – 2024.0 (mean 2008.7573) |
|
| 108 |
+
| `surveyid` | object | 0.0% | ZM2018DHS, ZM2024DHS, ZM2007DHS |
|
| 109 |
+
| `indicatorid` | object | 0.0% | RH_DELP_C_DHF, CH_DIAT_C_ORT, CM_ECMR_C_IMR |
|
| 110 |
+
| `indicatororder` | int64 | 0.0% | 11763080.0 – 260321010.0 (mean 96782154.7087) |
|
| 111 |
| `indicatortype` | object | 0.0% | I |
|
| 112 |
+
| `characteristicid` | int64 | 0.0% | 1000.0 – 10000.0 (mean 2747.5728) |
|
| 113 |
+
| `characteristicorder` | int64 | 0.0% | 0.0 – 10000.0 (mean 1941.7476) |
|
| 114 |
+
| `characteristiccategory` | object | 0.0% | Total, Total 15-49 |
|
| 115 |
+
| `characteristiclabel` | object | 0.0% | Total, Total 15-49 |
|
| 116 |
+
| `byvariableid` | int64 | 0.0% | 0.0 – 631002.0 (mean 19529.5583) |
|
| 117 |
+
| `byvariablelabel` | object | 67.5% | Five years preceding the survey, Ten years preceding the survey, Three years preceding the survey |
|
| 118 |
+
| `istotal` | int64 | 0.0% | 1.0 – 1.0 (mean 1.0) |
|
| 119 |
+
| `ispreferred` | int64 | 0.0% | 0.0 – 1.0 (mean 0.8155) |
|
| 120 |
| `sdrid` | object | 0.0% | |
|
| 121 |
+
| `surveyyearlabel` | object | 0.0% | |
|
|
|
|
| 122 |
| `surveytype` | object | 0.0% | |
|
| 123 |
+
| `denominatorweighted` | float64 | 31.1% | 745.0 – 27859.0 (mean 7003.7183) |
|
| 124 |
+
| `denominatorunweighted` | float64 | 31.1% | 750.0 – 27883.0 (mean 7038.1408) |
|
| 125 |
+
| `cilow` | float64 | 75.2% | 5.3 – 586.0 (mean 100.5471) |
|
| 126 |
+
| `cihigh` | float64 | 75.2% | 6.6 – 872.0 (mean 141.9471) |
|
| 127 |
| `esa_source` | object | 0.0% | |
|
| 128 |
| `esa_processed` | object | 0.0% | |
|
| 129 |
|
|
|
|
| 133 |
|
| 134 |
| Column | Min | Max | Mean | Median |
|
| 135 |
|---|---|---|---|---|
|
| 136 |
+
| `dataid` | 41515.0 | 834693.0 | 483738.1456 | 546494.0 |
|
| 137 |
+
| `value` | 0.4 | 729.0 | 58.3112 | 42.0 |
|
| 138 |
+
| `precision` | 0.0 | 1.0 | 0.8252 | 1.0 |
|
| 139 |
+
| `surveyyear` | 1992.0 | 2024.0 | 2008.7573 | 2007.0 |
|
| 140 |
+
| `indicatororder` | 11763080.0 | 260321010.0 | 96782154.7087 | 83566070.0 |
|
| 141 |
+
| `characteristicid` | 1000.0 | 10000.0 | 2747.5728 | 1000.0 |
|
| 142 |
+
| `characteristicorder` | 0.0 | 10000.0 | 1941.7476 | 0.0 |
|
| 143 |
+
| `byvariableid` | 0.0 | 631002.0 | 19529.5583 | 0.0 |
|
| 144 |
+
| `istotal` | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 145 |
+
| `ispreferred` | 0.0 | 1.0 | 0.8155 | 1.0 |
|
| 146 |
+
| `denominatorweighted` | 745.0 | 27859.0 | 7003.7183 | 5771.0 |
|
| 147 |
+
| `denominatorunweighted` | 750.0 | 27883.0 | 7038.1408 | 5894.0 |
|
| 148 |
+
| `cilow` | 5.3 | 586.0 | 100.5471 | 63.0 |
|
| 149 |
+
| `cihigh` | 6.6 | 872.0 | 141.9471 | 78.0 |
|
| 150 |
|
| 151 |
---
|
| 152 |
|
| 153 |
## Curation
|
| 154 |
|
| 155 |
+
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: `regionid`, `levelrank`. The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.
|
| 156 |
|
| 157 |
---
|
| 158 |
|
|
|
|
| 160 |
|
| 161 |
- Data originates from The DHS Program and has not been independently validated by ESA.
|
| 162 |
- Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
|
| 163 |
+
- The following columns have >20% missing values and should be treated with caution in modelling: `byvariablelabel`, `denominatorweighted`, `denominatorunweighted`, `cilow`, `cihigh`.
|
| 164 |
+
- Refer to the [original HDX dataset page](https://data.humdata.org/dataset/dhs-data-for-zambia) for the publisher's own methodology notes and caveats.
|
| 165 |
|
| 166 |
---
|
| 167 |
|
|
|
|
| 169 |
|
| 170 |
```bibtex
|
| 171 |
@dataset{hdx_africa_demographics_zambia,
|
| 172 |
+
title = {Zambia - National Demographic and Health Data},
|
| 173 |
author = {The DHS Program},
|
| 174 |
year = {2026},
|
| 175 |
+
url = {https://data.humdata.org/dataset/dhs-data-for-zambia},
|
| 176 |
note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
|
| 177 |
}
|
| 178 |
```
|