electricsheepafrica/africa-kenya-population-distribution-by-sex-number-of-households-area-and-density-per-constituen
收藏Hugging Face2026-04-09 更新2026-04-12 收录
下载链接:
https://hf-mirror.com/datasets/electricsheepafrica/africa-kenya-population-distribution-by-sex-number-of-households-area-and-density-per-constituen
下载链接
链接失效反馈官方服务:
资源简介:
---
annotations_creators:
- no-annotation
language_creators:
- found
language:
- en
license: cc-by-4.0
multilinguality:
- monolingual
size_categories:
- n<1K
source_datasets:
- original
task_categories:
- tabular-classification
- tabular-regression
task_ids: []
tags:
- africa
- humanitarian
- hdx
- electric-sheep-africa
- baseline-population
- ken
pretty_name: "Kenya - Population Distribution by Sex, Number of Households, Area and Density per constituency"
dataset_info:
splits:
- name: train
num_examples: 168
- name: test
num_examples: 42
---
# Kenya - Population Distribution by Sex, Number of Households, Area and Density per constituency
**Publisher:** Kenya National Bureau of Statistics (inactive) · **Source:** [HDX](https://data.humdata.org/dataset/kenya-population-distribution-by-sex-number-of-households-area-and-density-per-constituency) · **License:** `cc-by` · **Updated:** 2025-02-06
---
## Abstract
Kenya's Population Distribution by Sex, Number of Households, Area and Density per constituency
Each row in this dataset represents tabular records. Data was last updated on HDX on 2025-02-06. Geographic scope: **KEN**.
*Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
---
## Dataset Characteristics
| | |
|---|---|
| **Domain** | Demographics and population |
| **Unit of observation** | Tabular records |
| **Rows (total)** | 211 |
| **Columns** | 9 (1 numeric, 8 categorical, 0 datetime) |
| **Train split** | 168 rows |
| **Test split** | 42 rows |
| **Geographic scope** | KEN |
| **Publisher** | Kenya National Bureau of Statistics (inactive) |
| **HDX last updated** | 2025-02-06 |
---
## Variables
**Geographic** — `constituency` (Total, MATUNGU, LAIKIPIA EAST), `density` (range 1.92–987.13).
**Demographic** — `male` (19,192,378, 70,528, 88,576), `female` (19,417,719, 76,035, 86,220), `households` (31,103, 8,767,954, 55,705).
**Outcome / Measurement** — `total` (38,610,097, 146,563, 174,796).
**Identifier / Metadata** — `esa_source` (HDX), `esa_processed` (2026-04-09).
**Other** — `area_in_sq_km` (211, 204, 593).
---
## Quick Start
```python
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/africa-kenya-population-distribution-by-sex-number-of-households-area-and-density-per-constituen")
train = ds["train"].to_pandas()
test = ds["test"].to_pandas()
print(train.shape)
train.head()
```
---
## Schema
| Column | Type | Null % | Range / Sample Values |
|---|---|---|---|
| `constituency` | object | 0.0% | Total, MATUNGU, LAIKIPIA EAST |
| `male` | object | 0.0% | 19,192,378, 70,528, 88,576 |
| `female` | object | 0.0% | 19,417,719, 76,035, 86,220 |
| `total` | object | 0.0% | 38,610,097, 146,563, 174,796 |
| `households` | object | 0.0% | 31,103, 8,767,954, 55,705 |
| `area_in_sq_km` | object | 0.0% | 211, 204, 593 |
| `density` | float64 | 9.5% | 1.92 – 987.13 (mean 269.5482) |
| `esa_source` | object | 0.0% | HDX |
| `esa_processed` | object | 0.0% | 2026-04-09 |
---
## Numeric Summary
| Column | Min | Max | Mean | Median |
|---|---|---|---|---|
| `density` | 1.92 | 987.13 | 269.5482 | 218.44 |
---
## 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`. 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 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](https://data.humdata.org/dataset/kenya-population-distribution-by-sex-number-of-households-area-and-density-per-constituency) for the publisher's own methodology notes and caveats.
---
## Citation
```bibtex
@dataset{hdx_africa_kenya_population_distribution_by_sex_number_of_households_area_and_density_per_constituen,
title = {Kenya - Population Distribution by Sex, Number of Households, Area and Density per constituency},
author = {Kenya National Bureau of Statistics (inactive)},
year = {2025},
url = {https://data.humdata.org/dataset/kenya-population-distribution-by-sex-number-of-households-area-and-density-per-constituency},
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.*
annotations_creators:
- 无注释
language_creators:
- 现有资源提取
language:
- 英语(en)
license: CC BY 4.0
multilinguality:
- 单语言
size_categories:
- 样本数少于1000
source_datasets:
- 原创数据集
task_categories:
- 表格分类
- 表格回归
task_ids: []
tags:
- 非洲
- 人道主义
- HDX(Humanitarian Data Exchange)
- Electric Sheep Africa
- 基线人口
- 肯尼亚(KEN)
pretty_name: "肯尼亚——各选区按性别、家庭数量、面积及人口密度划分的人口分布"
dataset_info:
splits:
- name: train
num_examples: 168
- name: test
num_examples: 42
---
# 肯尼亚——各选区按性别、家庭数量、面积及人口密度划分的人口分布
**发布方**:肯尼亚国家统计局(已停用)·**数据来源**:[HDX(Humanitarian Data Exchange)](https://data.humdata.org/dataset/kenya-population-distribution-by-sex-number-of-households-area-and-density-per-constituency) ·**许可证**:`CC BY` ·**最后更新时间**:2025-02-06
---
## 摘要
本数据集为肯尼亚各选区按性别、家庭数量、面积及人口密度划分的人口分布数据。
数据集的每一行均为表格记录,数据最后于2025-02-06在HDX平台更新。地理覆盖范围:**肯尼亚(KEN)**。
*本数据集已由[Electric Sheep Africa(电羊非洲)](https://huggingface.co/electricsheepafrica)整理为适用于机器学习的Parquet格式。*
---
## 数据集特征
| | |
|---|---|
| **领域** | 人口统计学与人口研究 |
| **观测单元** | 表格记录 |
| **总行数** | 211 |
| **总列数** | 9(1个数值型列,8个分类型列,0个日期时间型列) |
| **训练集样本数** | 168行 |
| **测试集样本数** | 42行 |
| **地理覆盖范围** | 肯尼亚(KEN) |
| **发布方** | 肯尼亚国家统计局(已停用) |
| **HDX平台最后更新时间** | 2025-02-06 |
---
## 变量说明
**地理类变量**:`constituency(选区)`(可选值:Total、MATUNGU、LAIKIPIA EAST),`density(人口密度)`(取值范围1.92–987.13)。
**人口统计学类变量**:`male(男性人口)`(示例值:19,192,378、70,528、88,576),`female(女性人口)`(示例值:19,417,719、76,035、86,220),`households(家庭户数)`(示例值:31,103、8,767,954、55,705)。
**结果/测量类变量**:`total(总人口)`(示例值:38,610,097、146,563、174,796)。
**标识符/元数据类变量**:`esa_source(数据来源)`(取值为HDX),`esa_processed(数据处理时间)`(示例值:2026-04-09)。
**其他类变量**:`area_in_sq_km(面积,单位:平方公里)`(示例值:211、204、593)。
---
## 快速上手
python
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/africa-kenya-population-distribution-by-sex-number-of-households-area-and-density-per-constituen")
train = ds["train"].to_pandas()
test = ds["test"].to_pandas()
print(train.shape)
train.head()
---
## 数据Schema
| 列名 | 数据类型 | 空值占比 | 取值范围/示例值 |
|---|---|---|---|
| `constituency(选区)` | 字符型 | 0.0% | Total、MATUNGU、LAIKIPIA EAST |
| `male(男性人口)` | 字符型 | 0.0% | 19,192,378、70,528、88,576 |
| `female(女性人口)` | 字符型 | 0.0% | 19,417,719、76,035、86,220 |
| `total(总人口)` | 字符型 | 0.0% | 38,610,097、146,563、174,796 |
| `households(家庭户数)` | 字符型 | 0.0% | 31,103、8,767,954、55,705 |
| `area_in_sq_km(面积,单位:平方公里)` | 字符型 | 0.0% | 211、204、593 |
| `density(人口密度)` | 浮点型 | 9.5% | 1.92 – 987.13(均值:269.5482) |
| `esa_source(数据来源)` | 字符型 | 0.0% | HDX |
| `esa_processed(数据处理时间)` | 字符型 | 0.0% | 2026-04-09 |
---
## 数值型变量统计摘要
| 列名 | 最小值 | 最大值 | 均值 | 中位数 |
|---|---|---|---|---|
| `density(人口密度)` | 1.92 | 987.13 | 269.5482 | 218.44 |
---
## 数据整理流程
原始数据通过CKAN API从HDX平台下载,并转换为Parquet格式。所有列名均转为小写并标准化为蛇形命名法(snake_case)。常见缺失值标记(`N/A`、`null`、`none`、`-`、`unknown`、`no data`、`#N/A`)被统一替换为`NaN`。基于解析成功率(阈值>85%),将1列从字符串类型转换为数值型或日期时间型。本数据集以固定随机种子(42)按80/20的比例划分为训练集与测试集,并以Snappy压缩的Parquet格式存储。
---
## 数据集局限性
- 数据源自已停用的肯尼亚国家统计局,未经过Electric Sheep Africa(ESA)的独立验证。
- 自动化数据清洗无法修正原始数据集中的错报值、定义不一致或采样偏差问题。
- 请参阅[HDX平台原始数据集页面](https://data.humdata.org/dataset/kenya-population-distribution-by-sex-number-of-households-area-and-density-per-constituency)获取发布方提供的方法论说明与注意事项。
---
## 引用格式
bibtex
@dataset{hdx_africa_kenya_population_distribution_by_sex_number_of_households_area_and_density_per_constituen,
title = {Kenya - Population Distribution by Sex, Number of Households, Area and Density per constituency},
author = {Kenya National Bureau of Statistics (inactive)},
year = {2025},
url = {https://data.humdata.org/dataset/kenya-population-distribution-by-sex-number-of-households-area-and-density-per-constituency},
note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
}
---
*[Electric Sheep Africa(电羊非洲)](https://huggingface.co/electricsheepafrica) — 非洲机器学习数据集基础设施,尼日利亚拉各斯。*
提供机构:
electricsheepafrica



