age_group stringlengths 3 7 | females int64 179k 2.77M | males int64 159k 2.83M | total_population int64 339k 5.6M | esa_source stringclasses 1
value | esa_processed stringdate 2026-04-04 00:00:00 2026-04-04 00:00:00 |
|---|---|---|---|---|---|
55 - 59 | 352,487 | 359,466 | 711,953 | HDX | 2026-04-04 |
70 - 74 | 179,000 | 160,301 | 339,301 | HDX | 2026-04-04 |
45 - 49 | 637,469 | 635,276 | 1,272,745 | HDX | 2026-04-04 |
65 - 69 | 207,612 | 183,151 | 390,763 | HDX | 2026-04-04 |
15 - 19 | 2,045,890 | 2,123,653 | 4,169,543 | HDX | 2026-04-04 |
5 - 9 | 2,765,047 | 2,832,669 | 5,597,716 | HDX | 2026-04-04 |
80+ | 224,576 | 159,125 | 383,701 | HDX | 2026-04-04 |
25 - 29 | 1,672,110 | 1,529,116 | 3,201,226 | HDX | 2026-04-04 |
40 - 44 | 732,575 | 743,594 | 1,476,169 | HDX | 2026-04-04 |
50 - 54 | 477,860 | 478,346 | 956,206 | HDX | 2026-04-04 |
60 - 64 | 298,581 | 295,197 | 593,778 | HDX | 2026-04-04 |
20 - 24 | 2,020,998 | 1,754,105 | 3,775,103 | HDX | 2026-04-04 |
35 - 39 | 1,004,271 | 1,004,361 | 2,008,632 | HDX | 2026-04-04 |
Kenya Population characteristics
Publisher: Kenya National Bureau of Statistics (inactive) · Source: HDX · License: other-pd-nr · Updated: 2025-07-22
Abstract
The Kenya Population by Sex and Age Groups as per the 2009 National census survey
Each row in this dataset represents geolocated point observations. Data was last updated on HDX on 2025-07-22. Geographic scope: KEN.
Curated into ML-ready Parquet format by Electric Sheep Africa.
Dataset Characteristics
| Domain | Demographics and population |
| Unit of observation | Geolocated point observations |
| Rows (total) | 17 |
| Columns | 6 (3 numeric, 3 categorical, 0 datetime) |
| Train split | 13 rows |
| Test split | 3 rows |
| Geographic scope | KEN |
| Publisher | Kenya National Bureau of Statistics (inactive) |
| HDX last updated | 2025-07-22 |
Variables
Geographic — total_population (range 218508.0–5939306.0).
Demographic — age_group (0 - 4, 5 - 9, 75 - 79), females (range 118675.0–2938867.0), males (range 99833.0–3000439.0).
Identifier / Metadata — esa_source (HDX), esa_processed (2026-04-04).
Quick Start
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/africa-kenya-population-by-sex-and-age-groups")
train = ds["train"].to_pandas()
test = ds["test"].to_pandas()
print(train.shape)
train.head()
Schema
| Column | Type | Null % | Range / Sample Values |
|---|---|---|---|
age_group |
object | 0.0% | 0 - 4, 5 - 9, 75 - 79 |
females |
int64 | 0.0% | 118675.0 – 2938867.0 (mean 1141648.8824) |
males |
int64 | 0.0% | 99833.0 – 3000439.0 (mean 1128292.9412) |
total_population |
int64 | 0.0% | 218508.0 – 5939306.0 (mean 2269941.8235) |
esa_source |
object | 0.0% | HDX |
esa_processed |
object | 0.0% | 2026-04-04 |
Numeric Summary
| Column | Min | Max | Mean | Median |
|---|---|---|---|---|
females |
118675.0 | 2938867.0 | 1141648.8824 | 732575.0 |
males |
99833.0 | 3000439.0 | 1128292.9412 | 743594.0 |
total_population |
218508.0 | 5939306.0 | 2269941.8235 | 1476169.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. 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 Kenya National Bureau of Statistics (inactive) and has not been independently validated by ESA.
- Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
- Refer to the original HDX dataset page for the publisher's own methodology notes and caveats.
Citation
@dataset{hdx_africa_kenya_population_by_sex_and_age_groups,
title = {Kenya Population characteristics},
author = {Kenya National Bureau of Statistics (inactive)},
year = {2025},
url = {https://data.humdata.org/dataset/kenya-population-by-sex-and-age-groups},
note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
}
Electric Sheep Africa — Africa's ML dataset infrastructure. Lagos, Nigeria.
- Downloads last month
- 25