electricsheepafrica/africa-food-security-lesotho
收藏Hugging Face2026-04-27 更新2026-05-03 收录
下载链接:
https://hf-mirror.com/datasets/electricsheepafrica/africa-food-security-lesotho
下载链接
链接失效反馈官方服务:
资源简介:
---
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
- food-security
- indicators
- nutrition
- lso
pretty_name: "Lesotho - Food Security and Nutrition Indicators"
dataset_info:
splits:
- name: train
num_examples: 788
- name: test
num_examples: 197
---
# Lesotho - 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-lesotho) · **License:** `cc-by-igo` · **Updated:** 2026-04-20
---
## Abstract
Food Security and Nutrition Indicators for Lesotho.
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: **LSO**.
*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)** | 985 |
| **Columns** | 18 (5 numeric, 11 categorical, 2 datetime) |
| **Train split** | 788 rows |
| **Test split** | 197 rows |
| **Geographic scope** | LSO |
| **Publisher** | Food and Agriculture Organization (FAO) of the United Nations |
| **HDX last updated** | 2026-04-20 |
---
## Variables
**Geographic** — `iso3` (LSO), `year_code` (range 2000.0–20222024.0), `year` (range 2000.0–2024.0).
**Temporal** — `startdate`, `enddate`.
**Outcome / Measurement** — `value` (range -0.43–3057.0).
**Identifier / Metadata** — `area_code` (range 122.0–122.0), `area_code_m49` ('426), `item_code` (210081, 210081M, 210401), `element_code` (range 6121.0–61322.0), `esa_source` (HDX) and 1 others.
**Other** — `area` (Lesotho), `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), Prevalence of severe food insecurity in the total population (percent) (3-year average)), `element` (Value, Confidence interval: Lower bound, Confidence interval: Upper bound), `unit` (%, million No, g/cap/d), `flag` (E, X, O) and 1 others.
---
## Quick Start
```python
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/africa-food-security-lesotho")
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% | LSO |
| `startdate` | datetime64[ns] | 0.0% | |
| `enddate` | datetime64[ns] | 0.0% | |
| `area_code` | int64 | 0.0% | 122.0 – 122.0 (mean 122.0) |
| `area_code_m49` | object | 0.0% | '426 |
| `area` | object | 0.0% | Lesotho |
| `item_code` | object | 0.0% | 210081, 210081M, 210401 |
| `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), Prevalence of severe food insecurity in the total population (percent) (3-year average) |
| `element_code` | int64 | 0.0% | 6121.0 – 61322.0 (mean 18216.7492) |
| `element` | object | 0.0% | Value, Confidence interval: Lower bound, Confidence interval: Upper bound |
| `year_code` | int64 | 0.0% | 2000.0 – 20222024.0 (mean 10640298.736) |
| `year` | int64 | 0.0% | 2000.0 – 2024.0 (mean 2014.4721) |
| `unit` | object | 2.1% | %, million No, g/cap/d |
| `value` | float64 | 21.9% | -0.43 – 3057.0 (mean 236.0194) |
| `flag` | object | 0.0% | E, X, O |
| `note` | object | 78.1% | Official estimate integrated with FAO data, Official estimate |
| `esa_source` | object | 0.0% | HDX |
| `esa_processed` | object | 0.0% | |
---
## Numeric Summary
| Column | Min | Max | Mean | Median |
|---|---|---|---|---|
| `area_code` | 122.0 | 122.0 | 122.0 | 122.0 |
| `element_code` | 6121.0 | 61322.0 | 18216.7492 | 6125.0 |
| `year_code` | 2000.0 | 20222024.0 | 10640298.736 | 20032005.0 |
| `year` | 2000.0 | 2024.0 | 2014.4721 | 2016.0 |
| `value` | -0.43 | 3057.0 | 236.0194 | 24.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`. 3 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: `value`, `note`.
- Refer to the [original HDX dataset page](https://data.humdata.org/dataset/faostat-food-security-indicators-for-lesotho) for the publisher's own methodology notes and caveats.
---
## Citation
```bibtex
@dataset{hdx_africa_food_security_lesotho,
title = {Lesotho - 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-lesotho},
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.*
提供机构:
electricsheepafrica



