electricsheepafrica/africa-unhcr-population-data-for-swz
收藏资源简介:
--- 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 - asylum-seekers - internally-displaced-persons-idp - population - refugees - stateless-persons - swz pretty_name: "Eswatini - Data on forcibly displaced populations and stateless persons" dataset_info: splits: - name: train num_examples: 130 - name: test num_examples: 32 --- # Eswatini - Data on forcibly displaced populations and stateless persons **Publisher:** UNHCR - The UN Refugee Agency · **Source:** [HDX](https://data.humdata.org/dataset/unhcr-population-data-for-swz) · **License:** `cc-by-igo` · **Updated:** 2026-02-25 --- ## Abstract Data collated by UNHCR, containing information about forcibly displaced populations and stateless persons, spanning across more than 70 years of statistical activities. The data includes the countries / territories of asylum and origin. Specific resources are available for end-year population totals, demographics, asylum applications, decisions, and solutions availed by refugees and IDPs (resettlement, naturalisation or returns). Each row in this dataset represents first-level administrative unit observations. Data was last updated on HDX on 2026-02-25. Geographic scope: **SWZ**. *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).* --- ## Dataset Characteristics | | | |---|---| | **Domain** | Demographics and population | | **Unit of observation** | First-level administrative unit observations | | **Rows (total)** | 163 | | **Columns** | 14 (8 numeric, 6 categorical, 0 datetime) | | **Train split** | 130 rows | | **Test split** | 32 rows | | **Geographic scope** | SWZ | | **Publisher** | UNHCR - The UN Refugee Agency | | **HDX last updated** | 2026-02-25 | --- ## Variables **Geographic** — `year` (range 1994.0–2025.0), `country_of_origin_code` (SWZ), `country_of_asylum_code` (CAN, USA, GBR), `country_of_origin_name` (Eswatini), `country_of_asylum_name` (Canada, United States of America, United Kingdom of Great Britain and Northern Ireland) and 4 others. **Identifier / Metadata** — `refugees` (range 0.0–148.0), `esa_source` (HDX), `esa_processed` (2026-04-04). **Other** — `other_people_in_need_of_international_protection` (range 0.0–0.0), `others_of_concern_to_unhcr` (range 0.0–12.0). --- ## Quick Start ```python from datasets import load_dataset ds = load_dataset("electricsheepafrica/africa-unhcr-population-data-for-swz") train = ds["train"].to_pandas() test = ds["test"].to_pandas() print(train.shape) train.head() ``` --- ## Schema | Column | Type | Null % | Range / Sample Values | |---|---|---|---| | `year` | int64 | 0.0% | 1994.0 – 2025.0 (mean 2016.319) | | `country_of_origin_code` | object | 0.0% | SWZ | | `country_of_asylum_code` | object | 0.0% | CAN, USA, GBR | | `country_of_origin_name` | object | 0.0% | Eswatini | | `country_of_asylum_name` | object | 0.0% | Canada, United States of America, United Kingdom of Great Britain and Northern Ireland | | `refugees` | int64 | 0.0% | 0.0 – 148.0 (mean 16.6871) | | `asylum_seekers` | int64 | 0.0% | 0.0 – 404.0 (mean 18.6442) | | `other_people_in_need_of_international_protection` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) | | `internally_displaced_persons` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) | | `stateless_persons` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) | | `others_of_concern_to_unhcr` | int64 | 0.0% | 0.0 – 12.0 (mean 0.3865) | | `host_community` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) | | `esa_source` | object | 0.0% | HDX | | `esa_processed` | object | 0.0% | 2026-04-04 | --- ## Numeric Summary | Column | Min | Max | Mean | Median | |---|---|---|---|---| | `year` | 1994.0 | 2025.0 | 2016.319 | 2018.0 | | `refugees` | 0.0 | 148.0 | 16.6871 | 5.0 | | `asylum_seekers` | 0.0 | 404.0 | 18.6442 | 5.0 | | `other_people_in_need_of_international_protection` | 0.0 | 0.0 | 0.0 | 0.0 | | `internally_displaced_persons` | 0.0 | 0.0 | 0.0 | 0.0 | | `stateless_persons` | 0.0 | 0.0 | 0.0 | 0.0 | | `others_of_concern_to_unhcr` | 0.0 | 12.0 | 0.3865 | 0.0 | | `host_community` | 0.0 | 0.0 | 0.0 | 0.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 UNHCR - The UN Refugee Agency 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/unhcr-population-data-for-swz) for the publisher's own methodology notes and caveats. --- ## Citation ```bibtex @dataset{hdx_africa_unhcr_population_data_for_swz, title = {Eswatini - Data on forcibly displaced populations and stateless persons}, author = {UNHCR - The UN Refugee Agency}, year = {2026}, url = {https://data.humdata.org/dataset/unhcr-population-data-for-swz}, 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: - 表格分类任务(tabular-classification) - 表格回归任务(tabular-regression) task_ids: [] tags: - 非洲(africa) - 人道主义(humanitarian) - HDX(人道主义数据交换) - electric-sheep-africa(非洲电羊) - 寻求庇护者(asylum-seekers) - 国内流离失所者(internally-displaced-persons-idp) - 人口(population) - 难民(refugees) - 无国籍人士(stateless-persons) - swz(斯威士兰国家代码) pretty_name: "斯威士兰——被迫流离失所人口与无国籍人士数据" dataset_info: splits: - name: train num_examples: 130 - name: test num_examples: 32 --- # 斯威士兰——被迫流离失所人口与无国籍人士数据集 **发布方:** 联合国难民署(UNHCR - The UN Refugee Agency) · **数据来源:** [HDX(人道主义数据交换平台)](https://data.humdata.org/dataset/unhcr-population-data-for-swz) · **许可证:** `cc-by-igo` · **最后更新:** 2026-02-25 --- ## 摘要 本数据集由联合国难民署整理,涵盖超过70年的统计活动数据,包含被迫流离失所人口与无国籍人士的相关信息,涵盖庇护国与来源国/地区的信息。数据包含年末人口总数、人口结构、庇护申请、审批结果以及为难民和国内流离失所者提供的解决方案(重新安置、入籍或自愿遣返)等专项内容。 本数据集每一行代表一级行政单元的观测记录。数据最后一次在HDX平台更新的时间为2026-02-25。地理覆盖范围:**SWZ(斯威士兰国家代码)**。 *本数据集由[非洲电羊(Electric Sheep Africa)](https://huggingface.co/electricsheepafrica)整理为机器学习可用的Parquet格式。* --- ## 数据集特征 | 类别 | 详情 | |---|---| | **领域** | 人口与人口统计学 | | **观测单元** | 一级行政单元观测数据 | | **总记录数** | 163 | | **字段数量** | 14(8个数值型字段、6个分类型字段、0个日期时间型字段) | | **训练集划分** | 130条记录 | | **测试集划分** | 32条记录 | | **地理覆盖范围** | SWZ(斯威士兰) | | **发布方** | 联合国难民署(UNHCR - The UN Refugee Agency) | | **HDX平台最后更新时间** | 2026-02-25 | --- ## 字段说明 ### 地理类字段 `year`(年份,取值范围1994.0–2025.0)、`country_of_origin_code`(来源国代码,取值为SWZ)、`country_of_asylum_code`(庇护国代码,取值为CAN、USA、GBR)、`country_of_origin_name`(来源国名称,为斯威士兰)、`country_of_asylum_name`(庇护国名称,为加拿大、美利坚合众国、大不列颠及北爱尔兰联合王国)以及其余4个字段。 ### 标识符与元数据类字段 `refugees`(难民人数,取值范围0.0–148.0)、`esa_source`(数据来源,为HDX)、`esa_processed`(数据处理时间,2026-04-04)。 ### 其他字段 `other_people_in_need_of_international_protection`(其他需要国际保护的人员,取值范围0.0–0.0)、`others_of_concern_to_unhcr`(联合国难民署关注的其他群体,取值范围0.0–12.0)。 --- ## 快速入门 python from datasets import load_dataset ds = load_dataset("electricsheepafrica/africa-unhcr-population-data-for-swz") train = ds["train"].to_pandas() test = ds["test"].to_pandas() print(train.shape) train.head() --- ## 数据Schema | 字段名 | 数据类型 | 空值占比 | 取值范围/示例值 | |---|---|---|---| | `year` | int64 | 0.0% | 1994.0 – 2025.0(均值2016.319) | | `country_of_origin_code` | object | 0.0% | SWZ | | `country_of_asylum_code` | object | 0.0% | CAN、USA、GBR | | `country_of_origin_name` | object | 0.0% | 斯威士兰 | | `country_of_asylum_name` | object | 0.0% | 加拿大、美利坚合众国、大不列颠及北爱尔兰联合王国 | | `refugees` | int64 | 0.0% | 0.0 – 148.0(均值16.6871) | | `asylum_seekers` | int64 | 0.0% | 0.0 – 404.0(均值18.6442) | | `other_people_in_need_of_international_protection` | int64 | 0.0% | 0.0 – 0.0(均值0.0) | | `internally_displaced_persons` | int64 | 0.0% | 0.0 – 0.0(均值0.0) | | `stateless_persons` | int64 | 0.0% | 0.0 – 0.0(均值0.0) | | `others_of_concern_to_unhcr` | int64 | 0.0% | 0.0 – 12.0(均值0.3865) | | `host_community` | int64 | 0.0% | 0.0 – 0.0(均值0.0) | | `esa_source` | object | 0.0% | HDX | | `esa_processed` | object | 0.0% | 2026-04-04 | --- ## 数值型字段统计摘要 | 字段名 | 最小值 | 最大值 | 均值 | 中位数 | |---|---|---|---|---| | `year` | 1994.0 | 2025.0 | 2016.319 | 2018.0 | | `refugees` | 0.0 | 148.0 | 16.6871 | 5.0 | | `asylum_seekers` | 0.0 | 404.0 | 18.6442 | 5.0 | | `other_people_in_need_of_international_protection` | 0.0 | 0.0 | 0.0 | 0.0 | | `internally_displaced_persons` | 0.0 | 0.0 | 0.0 | 0.0 | | `stateless_persons` | 0.0 | 0.0 | 0.0 | 0.0 | | `others_of_concern_to_unhcr` | 0.0 | 12.0 | 0.3865 | 0.0 | | `host_community` | 0.0 | 0.0 | 0.0 | 0.0 | --- ## 数据整理流程 原始数据通过CKAN API从HDX平台下载,并转换为Parquet格式。字段名统一转换为小写蛇形命名法。将常见的缺失值标记(`N/A`、`null`、`none`、`-`、`unknown`、`no data`、`#N/A`)统一替换为`NaN`。采用固定随机种子(42)将数据集按80/20的比例划分为训练集与测试集,并保存为Snappy压缩的Parquet格式。 --- ## 数据集局限性 - 数据源自联合国难民署,未经过非洲电羊(ESA)的独立验证。 - 自动化清洗无法修正原始数据收集过程中存在的错报、定义不一致或抽样偏差问题。 - 如需了解发布方的方法说明与注意事项,请参阅[原始HDX数据集页面](https://data.humdata.org/dataset/unhcr-population-data-for-swz)。 --- ## 引用格式 bibtex @dataset{hdx_africa_unhcr_population_data_for_swz, title = {Eswatini - Data on forcibly displaced populations and stateless persons}, author = {UNHCR - The UN Refugee Agency}, year = {2026}, url = {https://data.humdata.org/dataset/unhcr-population-data-for-swz}, note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)} } --- *[非洲电羊(Electric Sheep Africa)](https://huggingface.co/electricsheepafrica)——非洲机器学习数据集基础设施,尼日利亚拉各斯。*




