Add README.md
Browse files
README.md
CHANGED
|
@@ -1,80 +1,183 @@
|
|
| 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: string
|
| 52 |
-
- name: surveytype
|
| 53 |
-
dtype: string
|
| 54 |
-
- name: denominatorweighted
|
| 55 |
-
dtype: float64
|
| 56 |
-
- name: denominatorunweighted
|
| 57 |
-
dtype: float64
|
| 58 |
-
- name: levelrank
|
| 59 |
-
dtype: int64
|
| 60 |
-
- name: esa_source
|
| 61 |
-
dtype: string
|
| 62 |
-
- name: esa_processed
|
| 63 |
-
dtype: string
|
| 64 |
splits:
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
num_bytes: 74855
|
| 70 |
-
num_examples: 219
|
| 71 |
-
download_size: 57081
|
| 72 |
-
dataset_size: 371662
|
| 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 |
+
- ago
|
| 27 |
+
pretty_name: "Angola - Subnational Demographic and Health Data"
|
| 28 |
dataset_info:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
splits:
|
| 30 |
+
- name: train
|
| 31 |
+
num_examples: 875
|
| 32 |
+
- name: test
|
| 33 |
+
num_examples: 218
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
---
|
| 35 |
+
|
| 36 |
+
# Angola - Subnational Demographic and Health Data
|
| 37 |
+
|
| 38 |
+
**Publisher:** The DHS Program · **Source:** [HDX](https://data.humdata.org/dataset/dhs-subnational-data-for-angola) · **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 [Angola - National Demographic and Health Data](https://data.humdata.org/dataset/dhs-data-for-angola) 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: **AGO**.
|
| 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,094 |
|
| 61 |
+
| **Columns** | 30 (13 numeric, 17 categorical, 0 datetime) |
|
| 62 |
+
| **Train split** | 875 rows |
|
| 63 |
+
| **Test split** | 218 rows |
|
| 64 |
+
| **Geographic scope** | AGO |
|
| 65 |
+
| **Publisher** | The DHS Program |
|
| 66 |
+
| **HDX last updated** | 2026-04-20 |
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
## Variables
|
| 71 |
+
|
| 72 |
+
**Geographic** — `iso3` (AGO), `location` (Lunda Norte , Malanje , Lunda Sul ), `dhs_countrycode` (AO), `countryname` (Angola), `surveyyear` (range 2006.0–2023.0) and 8 others.
|
| 73 |
+
|
| 74 |
+
**Outcome / Measurement** — `value` (range 0.3–136.0), `istotal` (range 0.0–0.0).
|
| 75 |
+
|
| 76 |
+
**Identifier / Metadata** — `dataid` (range 231.0–7981412.0), `indicatorid` (RH_DELP_C_DHF, CH_DIAT_C_ORT, DV_SPVL_W_POS), `characteristicid` (range 506001.0–506028.0), `characteristiclabel` (Lunda Norte , Malanje , Lunda Sul ), `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, Physical or sexual violence committed by husband/partner), `precision` (range 0.0–1.0), `indicatororder` (range 11763080.0–260321010.0), `characteristicorder` (range 1506001.0–1506028.0), `denominatorweighted` (range 6.0–5538.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-angola")
|
| 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% | AGO |
|
| 102 |
+
| `location` | object | 0.0% | Lunda Norte , Malanje , Lunda Sul |
|
| 103 |
+
| `dataid` | int64 | 0.0% | 231.0 – 7981412.0 (mean 4361339.8254) |
|
| 104 |
+
| `indicator` | object | 0.0% | Place of delivery: Health facility, Treatment of diarrhea: Either ORS or RHF, Physical or sexual violence committed by husband/partner |
|
| 105 |
+
| `value` | float64 | 0.0% | 0.3 – 136.0 (mean 26.9424) |
|
| 106 |
+
| `precision` | int64 | 0.0% | 0.0 – 1.0 (mean 0.9269) |
|
| 107 |
+
| `dhs_countrycode` | object | 0.0% | AO |
|
| 108 |
+
| `countryname` | object | 0.0% | Angola |
|
| 109 |
+
| `surveyyear` | int64 | 0.0% | 2006.0 – 2023.0 (mean 2018.4004) |
|
| 110 |
+
| `surveyid` | object | 0.0% | AO2015DHS, AO2023DHS, AO2006MIS |
|
| 111 |
+
| `indicatorid` | object | 0.0% | RH_DELP_C_DHF, CH_DIAT_C_ORT, DV_SPVL_W_POS |
|
| 112 |
+
| `indicatororder` | int64 | 0.0% | 11763080.0 – 260321010.0 (mean 108330851.7459) |
|
| 113 |
+
| `indicatortype` | object | 0.0% | I |
|
| 114 |
+
| `characteristicid` | int64 | 0.0% | 506001.0 – 506028.0 (mean 506018.6188) |
|
| 115 |
+
| `characteristicorder` | int64 | 0.0% | 1506001.0 – 1506028.0 (mean 1506018.6188) |
|
| 116 |
+
| `characteristiccategory` | object | 0.0% | Region |
|
| 117 |
+
| `characteristiclabel` | object | 0.0% | Lunda Norte , Malanje , Lunda Sul |
|
| 118 |
+
| `byvariableid` | int64 | 0.0% | 0.0 – 631002.0 (mean 34358.7285) |
|
| 119 |
+
| `byvariablelabel` | object | 72.1% | |
|
| 120 |
+
| `istotal` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) |
|
| 121 |
+
| `ispreferred` | int64 | 0.0% | 0.0 – 1.0 (mean 0.8793) |
|
| 122 |
+
| `sdrid` | object | 0.0% | |
|
| 123 |
+
| `regionid` | object | 0.0% | |
|
| 124 |
+
| `surveyyearlabel` | object | 0.0% | |
|
| 125 |
+
| `surveytype` | object | 0.0% | |
|
| 126 |
+
| `denominatorweighted` | float64 | 21.2% | 6.0 – 5538.0 (mean 474.8921) |
|
| 127 |
+
| `denominatorunweighted` | float64 | 21.2% | 27.0 – 2479.0 (mean 479.4954) |
|
| 128 |
+
| `levelrank` | int64 | 0.0% | 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` | 231.0 | 7981412.0 | 4361339.8254 | 4277082.0 |
|
| 139 |
+
| `value` | 0.3 | 136.0 | 26.9424 | 23.25 |
|
| 140 |
+
| `precision` | 0.0 | 1.0 | 0.9269 | 1.0 |
|
| 141 |
+
| `surveyyear` | 2006.0 | 2023.0 | 2018.4004 | 2015.0 |
|
| 142 |
+
| `indicatororder` | 11763080.0 | 260321010.0 | 108330851.7459 | 99166030.0 |
|
| 143 |
+
| `characteristicid` | 506001.0 | 506028.0 | 506018.6188 | 506019.0 |
|
| 144 |
+
| `characteristicorder` | 1506001.0 | 1506028.0 | 1506018.6188 | 1506019.0 |
|
| 145 |
+
| `byvariableid` | 0.0 | 631002.0 | 34358.7285 | 0.0 |
|
| 146 |
+
| `istotal` | 0.0 | 0.0 | 0.0 | 0.0 |
|
| 147 |
+
| `ispreferred` | 0.0 | 1.0 | 0.8793 | 1.0 |
|
| 148 |
+
| `denominatorweighted` | 6.0 | 5538.0 | 474.8921 | 249.5 |
|
| 149 |
+
| `denominatorunweighted` | 27.0 | 2479.0 | 479.4954 | 397.5 |
|
| 150 |
+
| `levelrank` | 1.0 | 1.0 | 1.0 | 1.0 |
|
| 151 |
+
|
| 152 |
+
---
|
| 153 |
+
|
| 154 |
+
## Curation
|
| 155 |
+
|
| 156 |
+
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`. The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.
|
| 157 |
+
|
| 158 |
+
---
|
| 159 |
+
|
| 160 |
+
## Limitations
|
| 161 |
+
|
| 162 |
+
- Data originates from The DHS Program and has not been independently validated by ESA.
|
| 163 |
+
- Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
|
| 164 |
+
- The following columns have >20% missing values and should be treated with caution in modelling: `byvariablelabel`, `denominatorweighted`, `denominatorunweighted`.
|
| 165 |
+
- Refer to the [original HDX dataset page](https://data.humdata.org/dataset/dhs-subnational-data-for-angola) for the publisher's own methodology notes and caveats.
|
| 166 |
+
|
| 167 |
+
---
|
| 168 |
+
|
| 169 |
+
## Citation
|
| 170 |
+
|
| 171 |
+
```bibtex
|
| 172 |
+
@dataset{hdx_africa_demographics_angola,
|
| 173 |
+
title = {Angola - Subnational Demographic and Health Data},
|
| 174 |
+
author = {The DHS Program},
|
| 175 |
+
year = {2026},
|
| 176 |
+
url = {https://data.humdata.org/dataset/dhs-subnational-data-for-angola},
|
| 177 |
+
note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
|
| 178 |
+
}
|
| 179 |
+
```
|
| 180 |
+
|
| 181 |
+
---
|
| 182 |
+
|
| 183 |
+
*[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*
|