electricsheepafrica/africa-faostat-food-security-indicators-for-botswana
收藏资源简介:
--- annotations_creators: - no-annotation language_creators: - found language: - en license: cc-by-4.0 multilinguality: - monolingual size_categories: - 1K<n<10K source_datasets: - original task_categories: - tabular-classification - tabular-regression task_ids: [] tags: - africa - humanitarian - hdx - electric-sheep-africa - food-security - indicators - nutrition - bwa pretty_name: "Botswana - Food Security and Nutrition Indicators" dataset_info: splits: - name: train num_examples: 831 - name: test num_examples: 207 --- # Botswana - Food Security and Nutrition Indicators **Publisher:** Food and Agriculture Organization (FAO) of the United Nations · **Source:** [HDX](https://data.humdata.org/dataset/faostat-food-security-indicators-for-botswana) · **License:** `cc-by-igo` · **Updated:** 2026-04-13 --- ## Abstract Food Security and Nutrition Indicators for Botswana. Contains data from the FAOSTAT [bulk data service](https://fenixservices.fao.org/faostat/static/bulkdownloads/datasets_E.json). Each row in this dataset represents country-level aggregates. Temporal coverage is indicated by the `startdate`, `enddate` column(s). Geographic scope: **BWA**. *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).* --- ## Dataset Characteristics | | | |---|---| | **Domain** | Food security and nutrition | | **Unit of observation** | Country-level aggregates | | **Rows (total)** | 1,039 | | **Columns** | 18 (5 numeric, 10 categorical, 3 datetime) | | **Train split** | 831 rows | | **Test split** | 207 rows | | **Geographic scope** | BWA | | **Publisher** | Food and Agriculture Organization (FAO) of the United Nations | | **HDX last updated** | 2026-04-13 | --- ## Variables **Geographic** — `iso3` (BWA), `year_code` (range 2000.0–20222024.0), `year` (range 2000.0–2024.0). **Temporal** — `startdate`, `enddate`. **Outcome / Measurement** — `value` (range 0.0–18933.0). **Identifier / Metadata** — `area_code` (range 20.0–20.0), `area_code_m49`, `item_code` (210081, 210081M, 210071F), `element_code` (range 6121.0–61322.0), `esa_source` (HDX) and 1 others. **Other** — `area` (Botswana), `item` (Number of moderately or severely food insecure people (million) (3-year average), Number of moderately or severely food insecure male adults (million) (3-year average), Number of severely food insecure female adults (million) (3-year average)), `element` (Value, Confidence interval: Lower bound, Confidence interval: Upper bound), `unit` (%, million No, kcal/cap/d), `flag` (E, X, A) and 1 others. --- ## Quick Start ```python from datasets import load_dataset ds = load_dataset("electricsheepafrica/africa-faostat-food-security-indicators-for-botswana") 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% | BWA | | `startdate` | datetime64[ns] | 0.0% | | | `enddate` | datetime64[ns] | 0.0% | | | `area_code` | int64 | 0.0% | 20.0 – 20.0 (mean 20.0) | | `area_code_m49` | datetime64[ns] | 0.0% | | | `area` | object | 0.0% | Botswana | | `item_code` | object | 0.0% | 210081, 210081M, 210071F | | `item` | object | 0.0% | Number of moderately or severely food insecure people (million) (3-year average), Number of moderately or severely food insecure male adults (million) (3-year average), Number of severely food insecure female adults (million) (3-year average) | | `element_code` | int64 | 0.0% | 6121.0 – 61322.0 (mean 17589.7103) | | `element` | object | 0.0% | Value, Confidence interval: Lower bound, Confidence interval: Upper bound | | `year_code` | int64 | 0.0% | 2000.0 – 20222024.0 (mean 10687981.7276) | | `year` | int64 | 0.0% | 2000.0 – 2024.0 (mean 2014.4514) | | `unit` | object | 2.1% | %, million No, kcal/cap/d | | `value` | float64 | 7.1% | 0.0 – 18933.0 (mean 657.4704) | | `flag` | object | 0.0% | E, X, A | | `note` | object | 68.7% | Official estimate integrated with FAO data, Imputed value | | `esa_source` | object | 0.0% | HDX | | `esa_processed` | object | 0.0% | 2026-04-15 | --- ## Numeric Summary | Column | Min | Max | Mean | Median | |---|---|---|---|---| | `area_code` | 20.0 | 20.0 | 20.0 | 20.0 | | `element_code` | 6121.0 | 61322.0 | 17589.7103 | 6128.0 | | `year_code` | 2000.0 | 20222024.0 | 10687981.7276 | 20032005.0 | | `year` | 2000.0 | 2024.0 | 2014.4514 | 2016.0 | | `value` | 0.0 | 18933.0 | 657.4704 | 23.5 | --- ## 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`. 4 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 Food and Agriculture Organization (FAO) of the United Nations 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: `note`. - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/faostat-food-security-indicators-for-botswana) for the publisher's own methodology notes and caveats. --- ## Citation ```bibtex @dataset{hdx_africa_faostat_food_security_indicators_for_botswana, title = {Botswana - Food Security and Nutrition Indicators}, author = {Food and Agriculture Organization (FAO) of the United Nations}, year = {2026}, url = {https://data.humdata.org/dataset/faostat-food-security-indicators-for-botswana}, 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<样本数<10000 source_datasets: - 原始数据集 task_categories: - 表格分类 - 表格回归 task_ids: [] tags: - 非洲 - 人道主义 - HDX - Electric Sheep Africa - 粮食安全 - 指标 - 营养 - 博茨瓦纳(BWA) pretty_name: "博茨瓦纳——粮食安全与营养指标" dataset_info: splits: - name: train num_examples: 831 - name: test num_examples: 207 --- # 博茨瓦纳——粮食安全与营养指标 **发布方**:联合国粮食及农业组织(Food and Agriculture Organization, FAO) · **来源**:[HDX](https://data.humdata.org/dataset/faostat-food-security-indicators-for-botswana) · **许可协议**:`cc-by-igo` · **更新时间**:2026-04-13 --- ## 摘要 本数据集包含博茨瓦纳的粮食安全与营养指标数据。 数据源自FAOSTAT [批量数据服务](https://fenixservices.fao.org/faostat/static/bulkdownloads/datasets_E.json)。 数据集中每一行均代表国家级聚合统计结果。时间覆盖范围由`startdate`、`enddate`字段标注。地理覆盖范围:**博茨瓦纳(BWA)**。 *本数据集已由[Electric Sheep Africa](https://huggingface.co/electricsheepafrica)整理为适用于机器学习的Parquet格式。* --- ## 数据集特征 | | | |---|---| | **领域** | 粮食安全与营养 | | **观测单元** | 国家级聚合统计结果 | | **总数据行数** | 1039 | | **字段数** | 18个(5个数值型、10个分类型、3个日期时间型) | | **训练集划分** | 831行 | | **测试集划分** | 207行 | | **地理覆盖范围** | 博茨瓦纳(BWA) | | **发布方** | 联合国粮食及农业组织(Food and Agriculture Organization, FAO) | | **HDX平台最后更新时间** | 2026-04-13 | --- ## 变量 **地理类字段** — `iso3`(博茨瓦纳,BWA)、`year_code`(取值范围2000.0–20222024.0)、`year`(取值范围2000.0–2024.0)。 **时间类字段** — `startdate`、`enddate`。 **结果/测量类字段** — `value`(取值范围0.0–18933.0)。 **标识符/元数据类字段** — `area_code`(取值范围20.0–20.0)、`area_code_m49`、`item_code`(210081、210081M、210071F)、`element_code`(取值范围6121.0–61322.0)、`esa_source`(HDX)及1个其他字段。 **其他字段** — `area`(博茨瓦纳)、`item`(轻度或重度粮食不安全人口数量(百万)(3年平均值)、轻度或重度粮食不安全成年男性人口数量(百万)(3年平均值)、重度粮食不安全成年女性人口数量(百万)(3年平均值))、`element`(数值、置信区间下限、置信区间上限)、`unit`(%、百万人口、千卡/人/天)、`flag`(E、X、A)及1个其他字段。 --- ## 快速上手 python from datasets import load_dataset ds = load_dataset("electricsheepafrica/africa-faostat-food-security-indicators-for-botswana") train = ds["train"].to_pandas() test = ds["test"].to_pandas() print(train.shape) train.head() --- ## 数据结构 | 字段名 | 数据类型 | 缺失率 | 取值范围/示例值 | |---|---|---|---| | `iso3` | object | 0.0% | 博茨瓦纳(BWA) | | `startdate` | datetime64[ns] | 0.0% | | | `enddate` | datetime64[ns] | 0.0% | | | `area_code` | int64 | 0.0% | 20.0 – 20.0(均值20.0) | | `area_code_m49` | datetime64[ns] | 0.0% | | | `area` | object | 0.0% | 博茨瓦纳 | | `item_code` | object | 0.0% | 210081、210081M、210071F | | `item` | object | 0.0% | 轻度或重度粮食不安全人口数量(百万)(3年平均值)、轻度或重度粮食不安全成年男性人口数量(百万)(3年平均值)、重度粮食不安全成年女性人口数量(百万)(3年平均值) | | `element_code` | int64 | 0.0% | 6121.0 – 61322.0(均值17589.7103) | | `element` | object | 0.0% | 数值、置信区间下限、置信区间上限 | | `year_code` | int64 | 0.0% | 2000.0 – 20222024.0(均值10687981.7276) | | `year` | int64 | 0.0% | 2000.0 – 2024.0(均值2014.4514) | | `unit` | object | 2.1% | %、百万人口、千卡/人/天 | | `value` | float64 | 7.1% | 0.0 – 18933.0(均值657.4704) | | `flag` | object | 0.0% | E、X、A | | `note` | object | 68.7% | 官方估算值(整合FAO数据)、插补值 | | `esa_source` | object | 0.0% | HDX | | `esa_processed` | object | 0.0% | 2026-04-15 | --- ## 数值型字段统计摘要 | 字段名 | 最小值 | 最大值 | 均值 | 中位数 | |---|---|---|---|---| | `area_code` | 20.0 | 20.0 | 20.0 | 20.0 | | `element_code` | 6121.0 | 61322.0 | 17589.7103 | 6128.0 | | `year_code` | 2000.0 | 20222024.0 | 10687981.7276 | 20032005.0 | | `year` | 2000.0 | 2024.0 | 2014.4514 | 2016.0 | | `value` | 0.0 | 18933.0 | 657.4704 | 23.5 | --- ## 数据整理流程 原始数据通过CKAN API从HDX平台下载,并转换为Parquet格式。字段名统一转为小写并采用蛇形命名法(snake_case)进行标准化。常见缺失值标记(`N/A`、`null`、`none`、`-`、`unknown`、`no data`、`#N/A`)被统一替换为`NaN`。根据解析成功率(阈值>85%),将4个字段从字符串类型转换为数值型或日期时间型。本数据集以固定随机种子(42)按照80/20的比例划分为训练集与测试集,并保存为Snappy压缩的Parquet格式。 --- ## 数据集局限性 - 数据源自联合国粮食及农业组织(FAO),未经过Electric Sheep Africa的独立验证。 - 自动化清洗流程无法修正原始数据集中的错报值、定义不一致或采样偏差问题。 - 以下字段缺失率超过20%,在建模过程中需谨慎使用:`note`。 - 如需查看发布方提供的方法说明与注意事项,请参阅[原始HDX数据集页面](https://data.humdata.org/dataset/faostat-food-security-indicators-for-botswana)。 --- ## 引用格式 bibtex @dataset{hdx_africa_faostat_food_security_indicators_for_botswana, title = {Botswana - Food Security and Nutrition Indicators}, author = {Food and Agriculture Organization (FAO) of the United Nations}, year = {2026}, url = {https://data.humdata.org/dataset/faostat-food-security-indicators-for-botswana}, note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)} } --- *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — 非洲机器学习数据集基础设施。尼日利亚拉各斯。*



