electricsheepafrica/africa-demographics-malawi
收藏Hugging Face2026-04-20 更新2026-04-26 收录
下载链接:
https://hf-mirror.com/datasets/electricsheepafrica/africa-demographics-malawi
下载链接
链接失效反馈官方服务:
资源简介:
---
annotations_creators:
- no-annotation
language_creators:
- found
language:
- en
license: other
multilinguality:
- monolingual
size_categories:
- 1K<n<10K
source_datasets:
- original
task_categories:
- tabular-classification
- other
task_ids: []
tags:
- africa
- humanitarian
- hdx
- electric-sheep-africa
- demographics
- health
- mwi
pretty_name: "Malawi - Subnational Demographic and Health Data"
dataset_info:
splits:
- name: train
num_examples: 2395
- name: test
num_examples: 598
---
# Malawi - Subnational Demographic and Health Data
**Publisher:** The DHS Program · **Source:** [HDX](https://data.humdata.org/dataset/dhs-subnational-data-for-malawi) · **License:** `hdx-other` · **Updated:** 2026-02-24
---
## Abstract
Contains data from the [DHS data portal](https://api.dhsprogram.com/). There is also a dataset containing [Malawi - National Demographic and Health Data](https://data.humdata.org/dataset/dhs-data-for-malawi) on HDX.
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.
Each row in this dataset represents first-level administrative unit observations. Data was last updated on HDX on 2026-02-24. Geographic scope: **MWI**.
*Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
---
## Dataset Characteristics
| | |
|---|---|
| **Domain** | Public health |
| **Unit of observation** | First-level administrative unit observations |
| **Rows (total)** | 2,994 |
| **Columns** | 30 (14 numeric, 16 categorical, 0 datetime) |
| **Train split** | 2,395 rows |
| **Test split** | 598 rows |
| **Geographic scope** | MWI |
| **Publisher** | The DHS Program |
| **HDX last updated** | 2026-02-24 |
---
## Variables
**Geographic** — `iso3` (MWI), `location` (Northern, Southern, Central), `dhs_countrycode` (MW), `countryname` (Malawi), `surveyyear` (range 1992.0–2024.0) and 8 others.
**Outcome / Measurement** — `value` (range 0.0–262.0), `istotal` (range 0.0–0.0).
**Identifier / Metadata** — `dataid` (range 100745.0–7979677.0), `indicatorid` (RH_DELP_C_DHF, CH_DIAT_C_ORT, DV_SPVL_W_POS), `characteristicid` (range 429001.0–429052.0), `characteristiclabel` (Northern, Southern, Central), `ispreferred` (range 0.0–1.0) and 3 others.
**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 1429010.0–1429075.0), `denominatorweighted` (range 1.0–12449.0) and 2 others.
---
## Quick Start
```python
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/africa-demographics-malawi")
train = ds["train"].to_pandas()
test = ds["test"].to_pandas()
print(train.shape)
train.head()
```
---
## Schema
| Column | Type | Null % | Range / Sample Values |
|---|---|---|---|
| `iso3` | object | 0.0% | MWI |
| `location` | object | 0.0% | Northern, Southern, Central |
| `dataid` | int64 | 0.0% | 100745.0 – 7979677.0 (mean 3931844.673) |
| `indicator` | object | 0.0% | Place of delivery: Health facility, Treatment of diarrhea: Either ORS or RHF, Physical or sexual violence committed by husband/partner |
| `value` | float64 | 0.0% | 0.0 – 262.0 (mean 44.0189) |
| `precision` | int64 | 0.0% | 0.0 – 1.0 (mean 0.9232) |
| `dhs_countrycode` | object | 0.0% | MW |
| `countryname` | object | 0.0% | Malawi |
| `surveyyear` | int64 | 0.0% | 1992.0 – 2024.0 (mean 2015.6032) |
| `surveyid` | object | 0.0% | MW2015DHS, MW2024DHS, MW2010DHS |
| `indicatorid` | object | 0.0% | RH_DELP_C_DHF, CH_DIAT_C_ORT, DV_SPVL_W_POS |
| `indicatororder` | int64 | 0.0% | 11763080.0 – 260321010.0 (mean 103233676.8036) |
| `indicatortype` | object | 0.0% | I |
| `characteristicid` | int64 | 0.0% | 429001.0 – 429052.0 (mean 429026.5678) |
| `characteristicorder` | int64 | 0.0% | 1429010.0 – 1429075.0 (mean 1429041.5651) |
| `characteristiccategory` | object | 0.0% | Region |
| `characteristiclabel` | object | 0.0% | Northern, Southern, Central |
| `byvariableid` | int64 | 0.0% | 0.0 – 631002.0 (mean 34567.9015) |
| `byvariablelabel` | object | 69.5% | |
| `istotal` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) |
| `ispreferred` | int64 | 0.0% | 0.0 – 1.0 (mean 0.8611) |
| `sdrid` | object | 0.0% | |
| `regionid` | object | 0.0% | |
| `surveyyearlabel` | float64 | 33.2% | 1992.0 – 2024.0 (mean 2015.9035) |
| `surveytype` | object | 0.0% | |
| `denominatorweighted` | float64 | 23.0% | 1.0 – 12449.0 (mean 849.8646) |
| `denominatorunweighted` | float64 | 23.0% | 25.0 – 12641.0 (mean 823.6237) |
| `levelrank` | float64 | 61.6% | 1.0 – 2.0 (mean 1.6325) |
| `esa_source` | object | 0.0% | |
| `esa_processed` | object | 0.0% | |
---
## Numeric Summary
| Column | Min | Max | Mean | Median |
|---|---|---|---|---|
| `dataid` | 100745.0 | 7979677.0 | 3931844.673 | 4084486.0 |
| `value` | 0.0 | 262.0 | 44.0189 | 41.25 |
| `precision` | 0.0 | 1.0 | 0.9232 | 1.0 |
| `surveyyear` | 1992.0 | 2024.0 | 2015.6032 | 2015.0 |
| `indicatororder` | 11763080.0 | 260321010.0 | 103233676.8036 | 94096040.0 |
| `characteristicid` | 429001.0 | 429052.0 | 429026.5678 | 429028.0 |
| `characteristicorder` | 1429010.0 | 1429075.0 | 1429041.5651 | 1429040.0 |
| `byvariableid` | 0.0 | 631002.0 | 34567.9015 | 0.0 |
| `istotal` | 0.0 | 0.0 | 0.0 | 0.0 |
| `ispreferred` | 0.0 | 1.0 | 0.8611 | 1.0 |
| `surveyyearlabel` | 1992.0 | 2024.0 | 2015.9035 | 2017.0 |
| `denominatorweighted` | 1.0 | 12449.0 | 849.8646 | 344.5 |
| `denominatorunweighted` | 25.0 | 12641.0 | 823.6237 | 418.5 |
| `levelrank` | 1.0 | 2.0 | 1.6325 | 2.0 |
---
## Curation
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.
---
## Limitations
- Data originates from The DHS Program and has not been independently validated by ESA.
- Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
- The following columns have >20% missing values and should be treated with caution in modelling: `byvariablelabel`, `surveyyearlabel`, `denominatorweighted`, `denominatorunweighted`, `levelrank`.
- Refer to the [original HDX dataset page](https://data.humdata.org/dataset/dhs-subnational-data-for-malawi) for the publisher's own methodology notes and caveats.
---
## Citation
```bibtex
@dataset{hdx_africa_demographics_malawi,
title = {Malawi - Subnational Demographic and Health Data},
author = {The DHS Program},
year = {2026},
url = {https://data.humdata.org/dataset/dhs-subnational-data-for-malawi},
note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
}
```
---
*[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*
提供机构:
electricsheepafrica



