electricsheepafrica/africa-faostat-food-prices-for-senegal
收藏资源简介:
--- 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-regression task_ids: [] tags: - africa - humanitarian - hdx - electric-sheep-africa - food-security - indicators - sen pretty_name: "Senegal - Food Prices" dataset_info: splits: - name: train num_examples: 350 - name: test num_examples: 87 --- # Senegal - Food Prices **Publisher:** Food and Agriculture Organization (FAO) of the United Nations · **Source:** [HDX](https://data.humdata.org/dataset/faostat-food-prices-for-senegal) · **License:** `cc-by-igo` · **Updated:** 2026-04-06 --- ## Abstract Food Prices for Senegal. Contains data from the FAOSTAT [bulk data service](https://fenixservices.fao.org/faostat/static/bulkdownloads/datasets_E.json) covering the following categories: Consumer Price Indices, Deflators, Exchange rates, Producer Prices Each row in this dataset represents country-level aggregates. Temporal coverage is indicated by the `startdate`, `enddate` column(s). Geographic scope: **SEN**. *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)** | 438 | | **Columns** | 17 (6 numeric, 9 categorical, 2 datetime) | | **Train split** | 350 rows | | **Test split** | 87 rows | | **Geographic scope** | SEN | | **Publisher** | Food and Agriculture Organization (FAO) of the United Nations | | **HDX last updated** | 2026-04-06 | --- ## Variables **Geographic** — `iso3` (SEN), `year_code` (range 1970.0–2024.0), `year` (range 1970.0–2024.0). **Temporal** — `startdate`, `enddate`. **Outcome / Measurement** — `value` (range 10.2869–159.0706). **Identifier / Metadata** — `area_code` (range 195.0–195.0), `area_code_m49` ('686), `item_code` (range 22024.0–22028.0), `element_code` (range 6179.0–62250.0), `esa_source` (HDX) and 1 others. **Other** — `area` (Senegal), `item` (GDP Deflator, Gross Fixed Capital Formation Deflator, Value Added Deflator (Agriculture, forestry and fishery)), `element` (Value Standard Local Currency, 2015 prices, Value US$, 2015 prices), `unit` (SLC, USD), `flag` (X, E). --- ## Quick Start ```python from datasets import load_dataset ds = load_dataset("electricsheepafrica/africa-faostat-food-prices-for-senegal") 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% | SEN | | `startdate` | datetime64[ns] | 0.0% | | | `enddate` | datetime64[ns] | 0.0% | | | `area_code` | int64 | 0.0% | 195.0 – 195.0 (mean 195.0) | | `area_code_m49` | object | 0.0% | '686 | | `area` | object | 0.0% | Senegal | | `item_code` | int64 | 0.0% | 22024.0 – 22028.0 (mean 22025.7397) | | `item` | object | 0.0% | GDP Deflator, Gross Fixed Capital Formation Deflator, Value Added Deflator (Agriculture, forestry and fishery) | | `element_code` | int64 | 0.0% | 6179.0 – 62250.0 (mean 34214.5) | | `element` | object | 0.0% | Value Standard Local Currency, 2015 prices, Value US$, 2015 prices | | `year_code` | int64 | 0.0% | 1970.0 – 2024.0 (mean 1996.8767) | | `year` | int64 | 0.0% | 1970.0 – 2024.0 (mean 1996.8767) | | `unit` | object | 0.0% | SLC, USD | | `value` | float64 | 0.0% | 10.2869 – 159.0706 (mean 75.3785) | | `flag` | object | 0.0% | X, E | | `esa_source` | object | 0.0% | HDX | | `esa_processed` | object | 0.0% | 2026-04-08 | --- ## Numeric Summary | Column | Min | Max | Mean | Median | |---|---|---|---|---| | `area_code` | 195.0 | 195.0 | 195.0 | 195.0 | | `item_code` | 22024.0 | 22028.0 | 22025.7397 | 22025.0 | | `element_code` | 6179.0 | 62250.0 | 34214.5 | 34214.5 | | `year_code` | 1970.0 | 2024.0 | 1996.8767 | 1997.0 | | `year` | 1970.0 | 2024.0 | 1996.8767 | 1997.0 | | `value` | 10.2869 | 159.0706 | 75.3785 | 79.2053 | --- ## 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`. 2 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. - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/faostat-food-prices-for-senegal) for the publisher's own methodology notes and caveats. --- ## Citation ```bibtex @dataset{hdx_africa_faostat_food_prices_for_senegal, title = {Senegal - Food Prices}, author = {Food and Agriculture Organization (FAO) of the United Nations}, year = {2026}, url = {https://data.humdata.org/dataset/faostat-food-prices-for-senegal}, 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.*
### 数据集元数据 - **注释创建者**:无注释 - **语言创建方式**:现有公开数据采集 - **语言**:英语(en) - **授权协议**:CC BY 4.0 - **多语言属性**:单语言 - **数据规模**:少于1000条记录 - **源数据集类型**:原始数据集 - **任务类别**:表格回归 - **任务子类别**:无 - **标签**:非洲、人道主义、HDX(人道主义数据交换平台)、Electric Sheep Africa、食品保障、统计指标、塞内加尔(SEN) - **美观名称**:"塞内加尔 - 食品价格" - **数据集信息**: - 拆分集: - 训练集(train):350条记录 - 测试集(test):87条记录 --- # 塞内加尔 - 食品价格 **发布方**:联合国粮食及农业组织(Food and Agriculture Organization, FAO) · **数据来源**:[HDX(人道主义数据交换平台)](https://data.humdata.org/dataset/faostat-food-prices-for-senegal) · **授权协议**:`cc-by-igo` · **最后更新**:2026-04-06 --- ## 摘要 本数据集收录塞内加尔食品价格相关数据。数据源自FAOSTAT[批量数据服务(bulk data service)](https://fenixservices.fao.org/faostat/static/bulkdownloads/datasets_E.json),涵盖以下类别:消费者价格指数、平减指数、汇率、生产者价格。 本数据集每条记录均为国家级聚合数据,时间覆盖范围由`startdate`(开始日期)与`enddate`(结束日期)字段标注,地理覆盖范围为**塞内加尔(SEN)**。 *本数据集已由[Electric Sheep Africa(电动绵羊非洲团队)](https://huggingface.co/electricsheepafrica)整理为适配机器学习的Parquet(列式存储格式)格式。* --- ## 数据集特征 | 指标 | 详情 | |---|---| | **领域** | 粮食安全与营养 | | **观测单元** | 国家级聚合数据 | | **总记录数** | 438条 | | **字段数** | 17个(6个数值型、9个分类型、2个日期时间型) | | **训练集拆分** | 350条 | | **测试集拆分** | 87条 | | **地理覆盖范围** | SEN(塞内加尔) | | **发布方** | 联合国粮食及农业组织(FAO) | | **HDX平台最后更新时间** | 2026-04-06 | --- ## 变量分类 **地理类字段**:`iso3`(国家代码,值为SEN)、`year_code`(年份代码,取值范围1970.0–2024.0)、`year`(年份,取值范围1970.0–2024.0)。 **时间类字段**:`startdate`(开始日期)、`enddate`(结束日期)。 **结果/测量类字段**:`value`(指标数值,取值范围10.2869–159.0706)。 **标识/元数据字段**:`area_code`(区域代码,取值范围195.0–195.0)、`area_code_m49`(联合国统计司区域代码,值为'686)、`item_code`(项目代码,取值范围22024.0–22028.0)、`element_code`(指标代码,取值范围6179.0–62250.0)、`esa_source`(数据来源,值为HDX)及1个其他字段。 **其他字段**:`area`(国家名称,值为塞内加尔)、`item`(统计项目,包括GDP平减指数、固定资本形成总额平减指数、农林渔业增加值平减指数)、`element`(指标类型,包括标准当地货币计价价值(2015年不变价)、美元计价价值(2015年不变价))、`unit`(计价单位,包括SLC、USD)、`flag`(数据标记,包括X、E)。 --- ## 快速上手 python from datasets import load_dataset # 加载塞内加尔食品价格数据集 ds = load_dataset("electricsheepafrica/africa-faostat-food-prices-for-senegal") train = ds["train"].to_pandas() test = ds["test"].to_pandas() # 打印训练集形状 print(train.shape) # 查看训练集前5条数据 train.head() --- ## 数据结构 | 列名 | 数据类型 | 空值占比 | 取值范围/示例值 | |---|---|---|---| | `iso3` | 字符串型 | 0.0% | 固定为SEN | | `startdate` | 日期时间型 | 0.0% | 无 | | `enddate` | 日期时间型 | 0.0% | 无 | | `area_code` | 64位整型 | 0.0% | 固定为195.0(均值195.0) | | `area_code_m49` | 字符串型 | 0.0% | 固定为'686 | | `area` | 字符串型 | 0.0% | 固定为塞内加尔 | | `item_code` | 64位整型 | 0.0% | 取值范围22024.0–22028.0(均值22025.7397) | | `item` | 字符串型 | 0.0% | 包括GDP平减指数、固定资本形成总额平减指数、农林渔业增加值平减指数 | | `element_code` | 64位整型 | 0.0% | 取值范围6179.0–62250.0(均值34214.5) | | `element` | 字符串型 | 0.0% | 包括标准当地货币计价价值(2015年不变价)、美元计价价值(2015年不变价) | | `year_code` | 64位整型 | 0.0% | 取值范围1970.0–2024.0(均值1996.8767) | | `year` | 64位整型 | 0.0% | 取值范围1970.0–2024.0(均值1996.8767) | | `unit` | 字符串型 | 0.0% | 包括SLC、USD | | `value` | 64位浮点型 | 0.0% | 取值范围10.2869–159.0706(均值75.3785) | | `flag` | 字符串型 | 0.0% | 包括X、E | | `esa_source` | 字符串型 | 0.0% | 固定为HDX | | `esa_processed` | 字符串型 | 0.0% | 数据处理日期为2026-04-08 | --- ## 数值型字段统计 | 列名 | 最小值 | 最大值 | 均值 | 中位数 | |---|---|---|---|---| | `area_code` | 195.0 | 195.0 | 195.0 | 195.0 | | `item_code` | 22024.0 | 22028.0 | 22025.7397 | 22025.0 | | `element_code` | 6179.0 | 62250.0 | 34214.5 | 34214.5 | | `year_code` | 1970.0 | 2024.0 | 1996.8767 | 1997.0 | | `year` | 1970.0 | 2024.0 | 1996.8767 | 1997.0 | | `value` | 10.2869 | 159.0706 | 75.3785 | 79.2053 | --- ## 数据整理流程 原始数据通过CKAN API从HDX平台下载,并转换为Parquet格式。字段名称统一转换为小写并标准化为蛇形命名法(snake_case)。将常见的缺失值标记(`N/A`、`null`、`none`、`-`、`unknown`、`no data`、`#N/A`)统一替换为`NaN`。基于解析成功率(阈值>85%),将2个字段从字符串类型转换为数值型或日期时间型。数据集以80:20的比例划分为训练集与测试集,采用固定随机种子(42)进行拆分,并以Snappy(快速压缩算法)压缩的Parquet格式存储。 --- ## 数据集局限性 - 数据源自联合国粮食及农业组织(FAO),未经过Electric Sheep Africa(ESA)的独立验证。 - 自动化清洗流程无法修正原始数据集中的错报值、定义不一致或采样偏差问题。 - 如需了解发布方的方法说明与注意事项,请参阅[HDX平台原始数据集页面](https://data.humdata.org/dataset/faostat-food-prices-for-senegal)。 --- ## 引用格式 bibtex @dataset{hdx_africa_faostat_food_prices_for_senegal, title = "塞内加尔 - 食品价格", author = {联合国粮食及农业组织(FAO)}, year = {2026}, url = {https://data.humdata.org/dataset/faostat-food-prices-for-senegal}, note = {由Electric Sheep Africa(电动绵羊非洲团队)重新打包以适配机器学习场景 (https://huggingface.co/electricsheepafrica)} } --- *[Electric Sheep Africa(电动绵羊非洲团队)](https://huggingface.co/electricsheepafrica) — 非洲机器学习数据集基础设施提供商,总部位于尼日利亚拉各斯。*



