electricsheepafrica/africa-idmc-idp-data-ben
收藏资源简介:
--- 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 task_ids: [] tags: - africa - humanitarian - hdx - electric-sheep-africa - conflict-violence - displacement - internally-displaced-persons-idp - natural-disasters - ben pretty_name: "Benin - Internal Displacements (New Displacements) – IDPs" dataset_info: splits: - name: train num_examples: 5 - name: test num_examples: 1 --- # Benin - Internal Displacements (New Displacements) – IDPs **Publisher:** Internal Displacement Monitoring Centre (IDMC) · **Source:** [HDX](https://data.humdata.org/dataset/idmc-idp-data-ben) · **License:** `cc-by-igo` · **Updated:** 2026-03-18 --- ## Abstract The [Global Internal Displacement Database (GIDD)](http://www.internal-displacement.org/database/displacement-data), maintained by the [Internal Displacement Monitoring Centre (IDMC)](https://www.internal-displacement.org/), provides comprehensive, validated annual estimates of internal displacement worldwide. It defines internally displaced persons (IDPs) in line with the [1998 Guiding Principles](https://www.internal-displacement.org/internal-displacement/guiding-principles-on-internal-displacement/), as people or groups of people who have been forced or obliged to flee or to leave their homes or places of habitual residence, in particular as a result of armed conflict, or to avoid the effects of armed conflict, situations of generalized violence, violations of human rights, or natural or human-made disasters and who have not crossed an international border. The GIDD tracks two primary metrics: "People Displaced" or population "Stock" figures, which represent the total number of people living in displacement at year-end, and "New Displacement," which counts new displacement incidents (population Flows) rather than individual people, accounting for potential multiple displacements by the same person. This dataset serves as a crucial resource for understanding long-term trends and validated displacement figures globally. For further detailed information and complete API specifications, users are encouraged to consult the official documentation at https://www.internal-displacement.org/database/api-documentation/. "Internally displaced persons - IDPs" refers to the number of people living in displacement as of the end of each year. "Internal displacements (New Displacements)" refers to the number of new cases or incidents of displacement recorded, rather than the number of people displaced. This is done because people may have been displaced more than once. Each row in this dataset represents country-level aggregates. Data was last updated on HDX on 2026-03-18. Geographic scope: **BEN**. *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).* --- ## Dataset Characteristics | | | |---|---| | **Domain** | Conflict and security | | **Unit of observation** | Country-level aggregates | | **Rows (total)** | 7 | | **Columns** | 9 (5 numeric, 4 categorical, 0 datetime) | | **Train split** | 5 rows | | **Test split** | 1 rows | | **Geographic scope** | BEN | | **Publisher** | Internal Displacement Monitoring Centre (IDMC) | | **HDX last updated** | 2026-03-18 | --- ## Variables **Geographic** — `iso3` (BEN), `country_name` (Benin), `year` (range 2018.0–2024.0), `new_displacement` (range 1231.0–6502.0), `new_displacement_rounded` (range 1200.0–6500.0) and 2 others. **Identifier / Metadata** — `esa_source` (HDX), `esa_processed` (2026-04-06). --- ## Quick Start ```python from datasets import load_dataset ds = load_dataset("electricsheepafrica/africa-idmc-idp-data-ben") 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% | BEN | | `country_name` | object | 0.0% | Benin | | `year` | int64 | 0.0% | 2018.0 – 2024.0 (mean 2021.0) | | `new_displacement` | float64 | 57.1% | 1231.0 – 6502.0 (mean 3742.3333) | | `new_displacement_rounded` | float64 | 57.1% | 1200.0 – 6500.0 (mean 3733.3333) | | `total_displacement` | int64 | 0.0% | 1231.0 – 12501.0 (mean 5100.0) | | `total_displacement_rounded` | int64 | 0.0% | 1200.0 – 13000.0 (mean 5171.4286) | | `esa_source` | object | 0.0% | HDX | | `esa_processed` | object | 0.0% | 2026-04-06 | --- ## Numeric Summary | Column | Min | Max | Mean | Median | |---|---|---|---|---| | `year` | 2018.0 | 2024.0 | 2021.0 | 2021.0 | | `new_displacement` | 1231.0 | 6502.0 | 3742.3333 | 3494.0 | | `new_displacement_rounded` | 1200.0 | 6500.0 | 3733.3333 | 3500.0 | | `total_displacement` | 1231.0 | 12501.0 | 5100.0 | 3494.0 | | `total_displacement_rounded` | 1200.0 | 13000.0 | 5171.4286 | 3500.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 Internal Displacement Monitoring Centre (IDMC) 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: `new_displacement`, `new_displacement_rounded`. - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/idmc-idp-data-ben) for the publisher's own methodology notes and caveats. --- ## Citation ```bibtex @dataset{hdx_africa_idmc_idp_data_ben, title = {Benin - Internal Displacements (New Displacements) – IDPs}, author = {Internal Displacement Monitoring Centre (IDMC)}, year = {2026}, url = {https://data.humdata.org/dataset/idmc-idp-data-ben}, 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: - 英语 license: - cc-by-4.0 multilinguality: - 单语种 size_categories: - 样本量少于1000条 source_datasets: - 原创数据集 task_categories: - 表格分类(tabular-classification) task_ids: [] tags: - 非洲 - 人道主义 - HDX - 非洲电羊(Electric Sheep Africa) - 冲突暴力 - 流离失所 - 国内流离失所者(IDPs) - 自然灾害 - 贝宁(BEN) pretty_name: "贝宁——国内流离失所新增情况——国内流离失所者(Internally Displaced Persons, IDPs)" dataset_info: splits: - name: train num_examples: 5 - name: test num_examples: 1 --- # 贝宁——国内流离失所新增情况——国内流离失所者(Internally Displaced Persons, IDPs) **发布方**:国内流离失所监测中心(Internal Displacement Monitoring Centre, IDMC) · **数据源**:[人道主义数据交换(HDX)](https://data.humdata.org/dataset/idmc-idp-data-ben) · **许可证**:`cc-by-igo` · **最后更新时间**:2026-03-18 --- ## 摘要 由[国内流离失所监测中心(IDMC)](https://www.internal-displacement.org/)维护的[全球国内流离失所数据库(Global Internal Displacement Database, GIDD)](http://www.internal-displacement.org/database/displacement-data),提供全球范围内经过验证的年度国内流离失所综合估算数据。该数据库依据[1998年国内流离失所问题指导原则(1998 Guiding Principles)](https://www.internal-displacement.org/internal-displacement/guiding-principles-on-internal-displacement/),对国内流离失所者(Internally Displaced Persons, IDPs)作出如下定义:因武装冲突、规避武装冲突影响、大规模暴力事件、人权侵犯行为、自然或人为灾害而被迫逃离或离开家园或惯常居所,且未跨越国际边境的个人或群体。 全球国内流离失所数据库追踪两项核心指标:一是“流离失所人口存量”,即年末处于流离失所状态的总人口数;二是“新增流离失所情况”,该指标统计新增流离失所事件(人口流动量)而非个体流离失所人数,涵盖同一人员多次流离失所的情形。本数据集是了解全球长期流离失所趋势与经验证的流离失所数据的重要资源。如需获取详细信息与完整API规范,请访问官方文档:https://www.internal-displacement.org/database/api-documentation/。 “国内流离失所者(IDPs)”指截至每年年末处于流离失所状态的人口总量。 “国内流离失所情况(新增流离失所)”指记录的新增流离失所事件或案例数量,而非流离失所者总人数,这是因为同一人员可能多次经历流离失所。 本数据集的每一行代表国家级汇总数据。数据最后一次在HDX平台更新的时间为2026-03-18。地理覆盖范围:**贝宁(BEN)**。本数据集由[非洲电羊(Electric Sheep Africa)](https://huggingface.co/electricsheepafrica)整理为机器学习可用的Parquet格式(Parquet)。 --- ## 数据集特征 | | | |---|---| | **领域** | 冲突与安全 | | **观测单元** | 国家级汇总数据 | | **总行数** | 7 | | **列数** | 9(5个数值型、4个分类型、0个日期时间型) | | **训练集划分** | 5行 | | **测试集划分** | 1行 | | **地理覆盖范围** | BEN(贝宁) | | **发布方** | 国内流离失所监测中心(IDMC) | | **HDX最后更新时间** | 2026-03-18 | --- ## 变量 **地理类变量** — `iso3`(BEN)、`country_name`(贝宁)、`year`(取值范围2018.0–2024.0)、`new_displacement`(取值范围1231.0–6502.0)、`new_displacement_rounded`(取值范围1200.0–6500.0)及另外2个变量。 **标识符与元数据类变量** — `esa_source`(HDX)、`esa_processed`(2026-04-06)。 --- ## 快速上手 python from datasets import load_dataset ds = load_dataset("electricsheepafrica/africa-idmc-idp-data-ben") train = ds["train"].to_pandas() test = ds["test"].to_pandas() print(train.shape) train.head() --- ## 数据结构 | 列名 | 数据类型 | 缺失率 | 取值范围/示例值 | |---|---|---|---| | `iso3` | 字符串型 | 0.0% | BEN | | `country_name` | 字符串型 | 0.0% | 贝宁 | | `year` | 64位整型 | 0.0% | 2018.0 – 2024.0(均值2021.0) | | `new_displacement` | 64位浮点型 | 57.1% | 1231.0 – 6502.0(均值3742.3333) | | `new_displacement_rounded` | 64位浮点型 | 57.1% | 1200.0 – 6500.0(均值3733.3333) | | `total_displacement` | 64位整型 | 0.0% | 1231.0 – 12501.0(均值5100.0) | | `total_displacement_rounded` | 64位整型 | 0.0% | 1200.0 – 13000.0(均值5171.4286) | | `esa_source` | 字符串型 | 0.0% | HDX | | `esa_processed` | 字符串型 | 0.0% | 2026-04-06 | --- ## 数值统计摘要 | 列名 | 最小值 | 最大值 | 均值 | 中位数 | |---|---|---|---|---| | `year` | 2018.0 | 2024.0 | 2021.0 | 2021.0 | | `new_displacement` | 1231.0 | 6502.0 | 3742.3333 | 3494.0 | | `new_displacement_rounded` | 1200.0 | 6500.0 | 3733.3333 | 3500.0 | | `total_displacement` | 1231.0 | 12501.0 | 5100.0 | 3494.0 | | `total_displacement_rounded` | 1200.0 | 13000.0 | 5171.4286 | 3500.0 | --- ## 数据整理流程 原始数据通过CKAN API(CKAN API)从HDX平台下载,并转换为Parquet格式(Parquet)。列名统一转换为小写并采用蛇形命名法(snake_case)规范。通用缺失值标记(`N/A`、`null`、`none`、`-`、`unknown`、`no data`、`#N/A`)被统一替换为`NaN`。本数据集以固定随机种子(42)按80/20比例划分为训练集与测试集,并保存为Snappy压缩(Snappy)的Parquet格式文件。 --- ## 数据集局限性 - 数据源自国内流离失所监测中心(IDMC),未经过非洲电羊(ESA)的独立验证。 - 自动化清洗流程无法修正原始数据收集中的错报值、定义不一致或抽样偏差问题。 - 以下列的缺失值占比超过20%,在建模过程中需谨慎使用:`new_displacement`、`new_displacement_rounded`。 - 如需了解发布方的方法学说明与免责声明,请参阅[原始HDX数据集页面](https://data.humdata.org/dataset/idmc-idp-data-ben)。 --- ## 引用格式 bibtex @dataset{hdx_africa_idmc_idp_data_ben, title = {Benin - Internal Displacements (New Displacements) – IDPs}, author = {Internal Displacement Monitoring Centre (IDMC)}, year = {2026}, url = {https://data.humdata.org/dataset/idmc-idp-data-ben}, note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)} } --- *[非洲电羊(Electric Sheep Africa)](https://huggingface.co/electricsheepafrica) — 非洲机器学习数据集基础设施。尼日利亚拉各斯。*



