source_record_id stringclasses 7
values | country_iso3 stringclasses 1
value | country_name stringclasses 1
value | id int64 1 7 | province_of_origin stringclasses 7
values | province_of_residence_destination_city_of_kigali int64 595 355k | province_of_residence_destination_south int64 370 109k | province_of_residence_destination_west int64 482 66k | province_of_residence_destination_north int64 372 72.8k | province_of_residence_destination_east int64 954 306k | out_migrants float64 2.77k 233k ⌀ | source_provider stringclasses 1
value | source_dataset stringclasses 1
value | source_resource stringclasses 1
value | source_package_id stringclasses 1
value | source_resource_id stringclasses 1
value | source_url stringclasses 1
value | license_id stringclasses 1
value | retrieved_at stringdate 2026-07-18 11:48:51 2026-07-18 11:48:51 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5949cee0-b26b-4ea5-bc50-8d49898e693c:0 | RWA | Rwanda | 1 | City of Kigali | 146,452 | 47,402 | 13,832 | 25,716 | 93,663 | 180,613 | NISR | Recent migration matrix by Province (2022) | phc5_2022_main_indicators_table31 | 5949cee0-b26b-4ea5-bc50-8d49898e693c | 5949cee0-b26b-4ea5-bc50-8d49898e693c | https://api.data.gov.rw/api/v1/datasets/public/5949cee0-b26b-4ea5-bc50-8d49898e693c/download?format=csv | cc-by-4.0 | 2026-07-18T11:48:51Z |
5949cee0-b26b-4ea5-bc50-8d49898e693c:1 | RWA | Rwanda | 2 | South | 140,755 | 102,895 | 13,207 | 10,482 | 68,067 | 232,511 | NISR | Recent migration matrix by Province (2022) | phc5_2022_main_indicators_table31 | 5949cee0-b26b-4ea5-bc50-8d49898e693c | 5949cee0-b26b-4ea5-bc50-8d49898e693c | https://api.data.gov.rw/api/v1/datasets/public/5949cee0-b26b-4ea5-bc50-8d49898e693c/download?format=csv | cc-by-4.0 | 2026-07-18T11:48:51Z |
5949cee0-b26b-4ea5-bc50-8d49898e693c:2 | RWA | Rwanda | 3 | West | 88,282 | 37,177 | 66,033 | 23,905 | 68,081 | 217,445 | NISR | Recent migration matrix by Province (2022) | phc5_2022_main_indicators_table31 | 5949cee0-b26b-4ea5-bc50-8d49898e693c | 5949cee0-b26b-4ea5-bc50-8d49898e693c | https://api.data.gov.rw/api/v1/datasets/public/5949cee0-b26b-4ea5-bc50-8d49898e693c/download?format=csv | cc-by-4.0 | 2026-07-18T11:48:51Z |
5949cee0-b26b-4ea5-bc50-8d49898e693c:3 | RWA | Rwanda | 4 | North | 47,504 | 8,718 | 9,703 | 29,055 | 76,280 | 142,205 | NISR | Recent migration matrix by Province (2022) | phc5_2022_main_indicators_table31 | 5949cee0-b26b-4ea5-bc50-8d49898e693c | 5949cee0-b26b-4ea5-bc50-8d49898e693c | https://api.data.gov.rw/api/v1/datasets/public/5949cee0-b26b-4ea5-bc50-8d49898e693c/download?format=csv | cc-by-4.0 | 2026-07-18T11:48:51Z |
5949cee0-b26b-4ea5-bc50-8d49898e693c:4 | RWA | Rwanda | 5 | East | 78,429 | 16,191 | 9,041 | 12,738 | 146,547 | 116,399 | NISR | Recent migration matrix by Province (2022) | phc5_2022_main_indicators_table31 | 5949cee0-b26b-4ea5-bc50-8d49898e693c | 5949cee0-b26b-4ea5-bc50-8d49898e693c | https://api.data.gov.rw/api/v1/datasets/public/5949cee0-b26b-4ea5-bc50-8d49898e693c/download?format=csv | cc-by-4.0 | 2026-07-18T11:48:51Z |
5949cee0-b26b-4ea5-bc50-8d49898e693c:5 | RWA | Rwanda | 6 | Not stated | 595 | 370 | 482 | 372 | 954 | 2,773 | NISR | Recent migration matrix by Province (2022) | phc5_2022_main_indicators_table31 | 5949cee0-b26b-4ea5-bc50-8d49898e693c | 5949cee0-b26b-4ea5-bc50-8d49898e693c | https://api.data.gov.rw/api/v1/datasets/public/5949cee0-b26b-4ea5-bc50-8d49898e693c/download?format=csv | cc-by-4.0 | 2026-07-18T11:48:51Z |
5949cee0-b26b-4ea5-bc50-8d49898e693c:6 | RWA | Rwanda | 7 | In-migrants | 354,970 | 109,488 | 45,783 | 72,841 | 306,091 | null | NISR | Recent migration matrix by Province (2022) | phc5_2022_main_indicators_table31 | 5949cee0-b26b-4ea5-bc50-8d49898e693c | 5949cee0-b26b-4ea5-bc50-8d49898e693c | https://api.data.gov.rw/api/v1/datasets/public/5949cee0-b26b-4ea5-bc50-8d49898e693c/download?format=csv | cc-by-4.0 | 2026-07-18T11:48:51Z |
Recent migration matrix by Province (2022) | Africa (Rwanda Data Sharing Platform - NISR)
7 rows - 1 Africa country/area - 2022-08-01-2022-08-31 - source table - Engineered by Electric Sheep Africa
TL;DR
This dataset contains 7 rows from Rwanda Data Sharing Platform - NISR, covering Recent migration matrix by Province (2022). It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading examples.
What This Dataset Measures
Demographic datasets help analysts understand population structure, household conditions, migration, gender, age, and settlement patterns.
Source-provided context: Summary: This aggregated data table contains the recent migration matrix by Province. This data was collected in the 5th Rwanda Population and Housing Census (PHC5) in August 2022. Geographic Coverage: National coverage (Rwanda), with disaggregation up to Province and District level. Time Period: The 5th Rwanda Population and Housing Census was conducted in August 2022. Frequency: The Rwanda Population and Housing Census is conducted every 10 years. Population/Units: Household members Key Variables: Province of origin, Province of residence (Destination), In-migrants, Out-migrants Purpose: Measuring progress in Rwanda's development calls for the availability of economic, demographic and social statistical data necessary to compile developmental indicators at different levels and points in time. This census thus comes to serve that purpose.
How To Read This Dataset
- One row means: one source record from the original tabular resource, with Electric Sheep Africa provenance columns added where available.
- Primary geography column:
country_iso3. - Best time column:
not detected. - Time coverage basis: source metadata period.
- Recommended join keys:
country_iso3where available plus source-specific keys.
Coverage
| Dimension | Value |
|---|---|
| Rows | 7 |
| Countries/areas | 1 |
| First period | 2022-08-01 |
| Last period | 2022-08-31 |
| Indicators | 0 |
| Columns | 19 |
| Source format | CSV |
Geographic Coverage
Top areas shown below, sorted by row count when available:
| Area | Rows | First year | Last year | Name |
|---|---|---|---|---|
RWA |
7 | 2022-08-01 | 2022-08-31 | Rwanda |
Indicators, Variables, Or Resource Contents
- This repo preserves one source tabular resource with its usable columns kept together.
Schema
| Column | Type | Description | Example |
|---|---|---|---|
source_record_id |
string |
Stable row identifier assigned during Electric Sheep Africa engineering. | 5949cee0-b26b-4ea5-bc50-8d49898e693c:0 |
country_iso3 |
string |
ISO3 country or area code. | RWA |
country_name |
string |
Country or area name. | Rwanda |
id |
int64 |
Row ID | 1 |
province_of_origin |
string |
Province of origin | City of Kigali |
province_of_residence_destination_city_of_kigali |
int64 |
Province of residence (Destination): City of Kigali | 146452 |
province_of_residence_destination_south |
int64 |
Province of residence (Destination): South | 47402 |
province_of_residence_destination_west |
int64 |
Province of residence (Destination): West | 13832 |
province_of_residence_destination_north |
int64 |
Province of residence (Destination): North | 25716 |
province_of_residence_destination_east |
int64 |
Province of residence (Destination): East | 93663 |
out_migrants |
double |
Out-migrants | 180613.0 |
source_provider |
string |
Publishing organization. | NISR |
source_dataset |
string |
Source dataset or package title. | Recent migration matrix by Province (2022) |
source_resource |
string |
Source resource title, table name, or file name. | phc5_2022_main_indicators_table31 |
source_package_id |
string |
Source package identifier. | 5949cee0-b26b-4ea5-bc50-8d49898e693c |
source_resource_id |
string |
Source resource identifier. | 5949cee0-b26b-4ea5-bc50-8d49898e693c |
source_url |
string |
Original source URL or download URL. | https://api.data.gov.rw/api/v1/datasets/public/5949cee0-b26b-4ea5-bc5... |
license_id |
string |
Source license identifier. | cc-by-4.0 |
retrieved_at |
string |
UTC source retrieval timestamp from the Electric Sheep Africa pipeline. | 2026-07-18T11:48:51Z |
Usage
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/africa-rwanda-recent-migration-matrix-by-province-2022-ad4930ba")
df = ds["train"].to_pandas()
print(df.head())
Inspect Columns
print(df.info())
print(df.head())
Filter By Geography
if "country_iso3" in df.columns:
sample = df[df["country_iso3"] == "RWA"]
Time-Series Pattern
if "value" in df.columns and "year" in df.columns:
trend = df.sort_values("year")
Pivot For Analysis
if {"indicator_id", "year", "value"}.issubset(df.columns):
matrix = df.pivot_table(index="year", columns="indicator_id", values="value")
print(matrix.tail())
Data Quality Notes
- No canonical year/date column was detected in the packaged table; use source metadata and domain context for temporal interpretation.
- Missing values are preserved rather than silently imputed.
- Column names are standardized for machine use; source meanings are preserved where known.
- Always confirm source methodology, units, and collection definitions before policy, production, or redistribution-sensitive use.
Source And Provenance
- Source: Rwanda Data Sharing Platform - NISR
- Publisher: NISR
- Portal: https://data.gov.rw/
- Resource: phc5_2022_main_indicators_table31
- License: CC BY 4.0
- Retrieved/generated:
2026-07-18T13:11:27Z - Hugging Face repo: electricsheepafrica/africa-rwanda-recent-migration-matrix-by-province-2022-ad4930ba
Transformations Applied
- Converted the source table to Parquet for efficient analytics and ML workflows.
- Added or preserved source provenance columns where available.
- Standardized README metadata, dataset loading configuration, schema documentation, and citation format.
- Preserved source-reported values without analytical imputation.
Suggested Analyses
- Build demographic profiles
- Normalize indicators per capita
- Join with service-delivery datasets
- Check missingness before modeling
- Use
country_iso3as the safest geography join key when present
Citation
@misc{electric_sheep_africa_africa_rwanda_recent_migration_matrix_by_province_2022_ad4930ba_2022,
title = {Recent migration matrix by Province (2022) | Africa (Rwanda Data Sharing Platform - NISR)},
author = {NISR},
year = {2022},
url = {https://api.data.gov.rw/api/v1/datasets/public/5949cee0-b26b-4ea5-bc50-8d49898e693c},
publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-rwanda-recent-migration-matrix-by-province-2022-ad4930ba}}
}
License
Released under CC BY 4.0.
Original data is published by NISR. Electric Sheep Africa engineering standardizes the data for discovery, loading, and analysis on Hugging Face. Cite both the original source and this ML-ready dataset when used.
About Electric Sheep Africa
Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
Provenance: README standardized 2026-08-12 by the Electric Sheep Africa README system. Source URL: https://api.data.gov.rw/api/v1/datasets/public/5949cee0-b26b-4ea5-bc50-8d49898e693c
- Downloads last month
- 21