Datasets:
country_name stringclasses 1
value | country_iso3 stringclasses 1
value | year int64 1.96k 2.03k | indicator_name stringclasses 37
values | indicator_code stringclasses 37
values | value float64 -0.09 17B | esa_source stringclasses 1
value | esa_processed stringdate 2026-04-11 00:00:00 2026-04-11 00:00:00 |
|---|---|---|---|---|---|---|---|
Morocco | MAR | 1,971 | Livestock production index (2014-2016 = 100) | AG.PRD.LVSK.XD | 24.12 | HDX | 2026-04-11 |
Morocco | MAR | 1,996 | Agricultural raw materials exports (% of merchandise exports) | TX.VAL.AGRI.ZS.UN | 2.523696 | HDX | 2026-04-11 |
Morocco | MAR | 1,988 | Rural population growth (annual %) | SP.RUR.TOTL.ZG | 0.433007 | HDX | 2026-04-11 |
Morocco | MAR | 1,967 | Rural population (% of total population) | SP.RUR.TOTL.ZS | 67.226345 | HDX | 2026-04-11 |
Morocco | MAR | 1,974 | Agricultural land (sq. km) | AG.LND.AGRI.K2 | 266,300 | HDX | 2026-04-11 |
Morocco | MAR | 2,018 | Cereal yield (kg per hectare) | AG.YLD.CREL.KG | 2,263.2 | HDX | 2026-04-11 |
Morocco | MAR | 1,979 | Permanent cropland (% of land area) | AG.LND.CROP.ZS | 1.120323 | HDX | 2026-04-11 |
Morocco | MAR | 1,999 | Surface area (sq. km) | AG.SRF.TOTL.K2 | 446,550 | HDX | 2026-04-11 |
Morocco | MAR | 2,004 | Arable land (hectares per person) | AG.LND.ARBL.HA.PC | 0.274096 | HDX | 2026-04-11 |
Morocco | MAR | 1,986 | Land area (sq. km) | AG.LND.TOTL.K2 | 446,300 | HDX | 2026-04-11 |
Morocco | MAR | 1,968 | Arable land (% of land area) | AG.LND.ARBL.ZS | 15.683112 | HDX | 2026-04-11 |
Morocco | MAR | 1,982 | Crop production index (2014-2016 = 100) | AG.PRD.CROP.XD | 38.75 | HDX | 2026-04-11 |
Morocco | MAR | 1,970 | Rural population | SP.RUR.TOTL | 9,911,492 | HDX | 2026-04-11 |
Morocco | MAR | 2,014 | Agricultural land (% of land area) | AG.LND.AGRI.ZS | 67.404212 | HDX | 2026-04-11 |
Morocco | MAR | 2,008 | Fertilizer consumption (% of fertilizer production) | AG.CON.FERT.PT.ZS | 38.692663 | HDX | 2026-04-11 |
Morocco | MAR | 2,010 | Arable land (hectares) | AG.LND.ARBL.HA | 7,729,300 | HDX | 2026-04-11 |
Morocco | MAR | 2,001 | Rural population (% of total population) | SP.RUR.TOTL.ZS | 46.102739 | HDX | 2026-04-11 |
Morocco | MAR | 2,008 | Agriculture, forestry, and fishing, value added (current US$) | NV.AGR.TOTL.CD | 11,063,019,937.8736 | HDX | 2026-04-11 |
Morocco | MAR | 1,982 | Food production index (2014-2016 = 100) | AG.PRD.FOOD.XD | 36.45 | HDX | 2026-04-11 |
Morocco | MAR | 1,975 | Arable land (% of land area) | AG.LND.ARBL.ZS | 16.341026 | HDX | 2026-04-11 |
Morocco | MAR | 1,972 | Crop production index (2014-2016 = 100) | AG.PRD.CROP.XD | 30.82 | HDX | 2026-04-11 |
Morocco | MAR | 2,009 | Land area (sq. km) | AG.LND.TOTL.K2 | 446,300 | HDX | 2026-04-11 |
Morocco | MAR | 2,003 | Forest area (sq. km) | AG.LND.FRST.K2 | 55,569.49 | HDX | 2026-04-11 |
Morocco | MAR | 1,998 | Land area (sq. km) | AG.LND.TOTL.K2 | 446,300 | HDX | 2026-04-11 |
Morocco | MAR | 1,987 | Arable land (% of land area) | AG.LND.ARBL.ZS | 18.29711 | HDX | 2026-04-11 |
Morocco | MAR | 2,013 | Agricultural land (% of land area) | AG.LND.AGRI.ZS | 68.530137 | HDX | 2026-04-11 |
Morocco | MAR | 1,983 | Food production index (2014-2016 = 100) | AG.PRD.FOOD.XD | 31.83 | HDX | 2026-04-11 |
Morocco | MAR | 2,006 | Livestock production index (2014-2016 = 100) | AG.PRD.LVSK.XD | 67.4 | HDX | 2026-04-11 |
Morocco | MAR | 2,021 | Permanent cropland (% of land area) | AG.LND.CROP.ZS | 3.997266 | HDX | 2026-04-11 |
Morocco | MAR | 2,010 | Rural population (% of total population) | SP.RUR.TOTL.ZS | 41.671248 | HDX | 2026-04-11 |
Morocco | MAR | 2,011 | Land under cereal production (hectares) | AG.LND.CREL.HA | 5,382,258 | HDX | 2026-04-11 |
Morocco | MAR | 1,966 | Permanent cropland (% of land area) | AG.LND.CROP.ZS | 0.981315 | HDX | 2026-04-11 |
Morocco | MAR | 2,015 | Access to electricity, rural (% of rural population) | EG.ELC.ACCS.RU.ZS | 93.6 | HDX | 2026-04-11 |
Morocco | MAR | 2,012 | Livestock production index (2014-2016 = 100) | AG.PRD.LVSK.XD | 93.06 | HDX | 2026-04-11 |
Morocco | MAR | 1,987 | Cereal yield (kg per hectare) | AG.YLD.CREL.KG | 853.7 | HDX | 2026-04-11 |
Morocco | MAR | 1,998 | Forest area (sq. km) | AG.LND.FRST.K2 | 55,022.9 | HDX | 2026-04-11 |
Morocco | MAR | 2,005 | Surface area (sq. km) | AG.SRF.TOTL.K2 | 446,550 | HDX | 2026-04-11 |
Morocco | MAR | 2,007 | Food production index (2014-2016 = 100) | AG.PRD.FOOD.XD | 68.93 | HDX | 2026-04-11 |
Morocco | MAR | 1,965 | Arable land (hectares) | AG.LND.ARBL.HA | 6,800,000 | HDX | 2026-04-11 |
Morocco | MAR | 1,967 | Fertilizer consumption (% of fertilizer production) | AG.CON.FERT.PT.ZS | 69.045495 | HDX | 2026-04-11 |
Morocco | MAR | 1,993 | Agricultural raw materials exports (% of merchandise exports) | TX.VAL.AGRI.ZS.UN | 2.440853 | HDX | 2026-04-11 |
Morocco | MAR | 1,981 | Arable land (% of land area) | AG.LND.ARBL.ZS | 17.230562 | HDX | 2026-04-11 |
Morocco | MAR | 1,962 | Land area (sq. km) | AG.LND.TOTL.K2 | 446,340 | HDX | 2026-04-11 |
Morocco | MAR | 1,980 | Fertilizer consumption (% of fertilizer production) | AG.CON.FERT.PT.ZS | 96.891233 | HDX | 2026-04-11 |
Morocco | MAR | 1,986 | Fertilizer consumption (kilograms per hectare of arable land) | AG.CON.FERT.ZS | 38.896946 | HDX | 2026-04-11 |
Morocco | MAR | 2,001 | Arable land (hectares) | AG.LND.ARBL.HA | 8,488,000 | HDX | 2026-04-11 |
Morocco | MAR | 1,999 | Agriculture, forestry, and fishing, value added (current US$) | NV.AGR.TOTL.CD | 5,772,495,524.72207 | HDX | 2026-04-11 |
Morocco | MAR | 1,985 | Arable land (hectares per person) | AG.LND.ARBL.HA.PC | 0.356246 | HDX | 2026-04-11 |
Morocco | MAR | 1,985 | Fertilizer consumption (kilograms per hectare of arable land) | AG.CON.FERT.ZS | 36.969408 | HDX | 2026-04-11 |
Morocco | MAR | 1,976 | Rural population growth (annual %) | SP.RUR.TOTL.ZG | 1.362465 | HDX | 2026-04-11 |
Morocco | MAR | 1,979 | Fertilizer consumption (kilograms per hectare of arable land) | AG.CON.FERT.ZS | 25.499733 | HDX | 2026-04-11 |
Morocco | MAR | 1,975 | Rural population growth (annual %) | SP.RUR.TOTL.ZG | 1.425574 | HDX | 2026-04-11 |
Morocco | MAR | 1,999 | Economically active population in agriculture (number) | EN.AGR.EMPL | 3,452,000 | HDX | 2026-04-11 |
Morocco | MAR | 1,987 | Land area (sq. km) | AG.LND.TOTL.K2 | 446,300 | HDX | 2026-04-11 |
Morocco | MAR | 2,003 | Agriculture, forestry, and fishing, value added (current US$) | NV.AGR.TOTL.CD | 7,248,946,934.75287 | HDX | 2026-04-11 |
Morocco | MAR | 2,010 | Forest area (% of land area) | AG.LND.FRST.ZS | 12.714699 | HDX | 2026-04-11 |
Morocco | MAR | 1,998 | Permanent cropland (% of land area) | AG.LND.CROP.ZS | 2.112929 | HDX | 2026-04-11 |
Morocco | MAR | 2,015 | Land area (sq. km) | AG.LND.TOTL.K2 | 446,300 | HDX | 2026-04-11 |
Morocco | MAR | 2,021 | Livestock production index (2014-2016 = 100) | AG.PRD.LVSK.XD | 112.1 | HDX | 2026-04-11 |
Morocco | MAR | 2,018 | Access to electricity, rural (% of rural population) | EG.ELC.ACCS.RU.ZS | 96.1 | HDX | 2026-04-11 |
Morocco | MAR | 2,021 | Agricultural land (sq. km) | AG.LND.AGRI.K2 | 299,177.368 | HDX | 2026-04-11 |
Morocco | MAR | 1,970 | Land under cereal production (hectares) | AG.LND.CREL.HA | 4,513,200 | HDX | 2026-04-11 |
Morocco | MAR | 2,022 | Land area (sq. km) | AG.LND.TOTL.K2 | 446,300 | HDX | 2026-04-11 |
Morocco | MAR | 1,976 | Arable land (% of land area) | AG.LND.ARBL.ZS | 16.39032 | HDX | 2026-04-11 |
Morocco | MAR | 1,984 | Food production index (2014-2016 = 100) | AG.PRD.FOOD.XD | 33.43 | HDX | 2026-04-11 |
Morocco | MAR | 1,992 | Employment in agriculture, male (% of male employment) (modeled ILO estimate) | SL.AGR.EMPL.MA.ZS | 43.199128 | HDX | 2026-04-11 |
Morocco | MAR | 1,979 | Average precipitation in depth (mm per year) | AG.LND.PRCP.MM | 346 | HDX | 2026-04-11 |
Morocco | MAR | 2,017 | Food production index (2014-2016 = 100) | AG.PRD.FOOD.XD | 108.67 | HDX | 2026-04-11 |
Morocco | MAR | 1,978 | Agriculture, forestry, and fishing, value added (% of GDP) | NV.AGR.TOTL.ZS | 18.919752 | HDX | 2026-04-11 |
Morocco | MAR | 2,019 | Rural population (% of total population) | SP.RUR.TOTL.ZS | 38.156955 | HDX | 2026-04-11 |
Morocco | MAR | 2,002 | Agricultural raw materials imports (% of merchandise imports) | TM.VAL.AGRI.ZS.UN | 3.288298 | HDX | 2026-04-11 |
Morocco | MAR | 2,011 | Rural population growth (annual %) | SP.RUR.TOTL.ZG | -0.023544 | HDX | 2026-04-11 |
Morocco | MAR | 1,986 | Economically active population in agriculture (number) | EN.AGR.EMPL | 3,223,000 | HDX | 2026-04-11 |
Morocco | MAR | 1,997 | Employment in agriculture, female (% of female employment) (modeled ILO estimate) | SL.AGR.EMPL.FE.ZS | 60.785016 | HDX | 2026-04-11 |
Morocco | MAR | 2,003 | Surface area (sq. km) | AG.SRF.TOTL.K2 | 446,550 | HDX | 2026-04-11 |
Morocco | MAR | 1,974 | Average precipitation in depth (mm per year) | AG.LND.PRCP.MM | 346 | HDX | 2026-04-11 |
Morocco | MAR | 2,007 | Livestock production index (2014-2016 = 100) | AG.PRD.LVSK.XD | 70.82 | HDX | 2026-04-11 |
Morocco | MAR | 1,999 | Average precipitation in depth (mm per year) | AG.LND.PRCP.MM | 346 | HDX | 2026-04-11 |
Morocco | MAR | 1,996 | Arable land (% of land area) | AG.LND.ARBL.ZS | 20.38091 | HDX | 2026-04-11 |
Morocco | MAR | 2,022 | Employment in agriculture, male (% of male employment) (modeled ILO estimate) | SL.AGR.EMPL.MA.ZS | 25.944502 | HDX | 2026-04-11 |
Morocco | MAR | 1,966 | Rural population (% of total population) | SP.RUR.TOTL.ZS | 67.770306 | HDX | 2026-04-11 |
Morocco | MAR | 1,965 | Rural population | SP.RUR.TOTL | 9,043,857 | HDX | 2026-04-11 |
Morocco | MAR | 2,016 | Agricultural raw materials exports (% of merchandise exports) | TX.VAL.AGRI.ZS.UN | 0.945951 | HDX | 2026-04-11 |
Morocco | MAR | 1,978 | Crop production index (2014-2016 = 100) | AG.PRD.CROP.XD | 33.98 | HDX | 2026-04-11 |
Morocco | MAR | 2,002 | Land under cereal production (hectares) | AG.LND.CREL.HA | 4,947,863 | HDX | 2026-04-11 |
Morocco | MAR | 1,986 | Agricultural land (% of land area) | AG.LND.AGRI.ZS | 66.092315 | HDX | 2026-04-11 |
Morocco | MAR | 1,981 | Agricultural land (% of land area) | AG.LND.AGRI.ZS | 65.180372 | HDX | 2026-04-11 |
Morocco | MAR | 2,001 | Land area (sq. km) | AG.LND.TOTL.K2 | 446,300 | HDX | 2026-04-11 |
Morocco | MAR | 1,983 | Agricultural raw materials exports (% of merchandise exports) | TX.VAL.AGRI.ZS.UN | 1.910559 | HDX | 2026-04-11 |
Morocco | MAR | 2,013 | Forest area (sq. km) | AG.LND.FRST.K2 | 56,806.42 | HDX | 2026-04-11 |
Morocco | MAR | 1,986 | Agricultural land (sq. km) | AG.LND.AGRI.K2 | 294,970 | HDX | 2026-04-11 |
Morocco | MAR | 2,001 | Average precipitation in depth (mm per year) | AG.LND.PRCP.MM | 346 | HDX | 2026-04-11 |
Morocco | MAR | 1,990 | Rural population | SP.RUR.TOTL | 12,569,530 | HDX | 2026-04-11 |
Morocco | MAR | 2,009 | Arable land (hectares) | AG.LND.ARBL.HA | 8,039,600 | HDX | 2026-04-11 |
Morocco | MAR | 2,001 | Agricultural land (sq. km) | AG.LND.AGRI.K2 | 303,700 | HDX | 2026-04-11 |
Morocco | MAR | 2,003 | Rural population | SP.RUR.TOTL | 13,431,845 | HDX | 2026-04-11 |
Morocco | MAR | 1,964 | Livestock production index (2014-2016 = 100) | AG.PRD.LVSK.XD | 17.91 | HDX | 2026-04-11 |
Morocco | MAR | 1,978 | Land area (sq. km) | AG.LND.TOTL.K2 | 446,300 | HDX | 2026-04-11 |
Morocco | MAR | 1,997 | Average precipitation in depth (mm per year) | AG.LND.PRCP.MM | 346 | HDX | 2026-04-11 |
Morocco | MAR | 2,020 | Agricultural raw materials exports (% of merchandise exports) | TX.VAL.AGRI.ZS.UN | 0.829987 | HDX | 2026-04-11 |
Morocco - Agriculture and Rural Development
Publisher: World Bank Group · Source: HDX · License: cc-by · Updated: 2026-03-27
Abstract
Contains data from the World Bank's data portal. There is also a consolidated country dataset on HDX.
For the 70 percent of the world's poor who live in rural areas, agriculture is the main source of income and employment. But depletion and degradation of land and water pose serious challenges to producing enough food and other agricultural products to sustain livelihoods here and meet the needs of urban populations. Data presented here include measures of agricultural inputs, outputs, and productivity compiled by the UN's Food and Agriculture Organization.
Each row in this dataset represents country-level aggregates. Data was last updated on HDX on 2026-03-27. Geographic scope: MAR.
Curated into ML-ready Parquet format by Electric Sheep Africa.
Dataset Characteristics
| Domain | Food security and nutrition |
| Unit of observation | Country-level aggregates |
| Rows (total) | 1,794 |
| Columns | 8 (2 numeric, 6 categorical, 0 datetime) |
| Train split | 1,435 rows |
| Test split | 358 rows |
| Geographic scope | MAR |
| Publisher | World Bank Group |
| HDX last updated | 2026-03-27 |
Variables
Geographic — country_name (Morocco), country_iso3 (MAR), year (range 1960.0–2025.0).
Outcome / Measurement — value (range -0.089–17011322487.7521).
Identifier / Metadata — indicator_name (Rural population (% of total population), Rural population, Rural population growth (annual %)), indicator_code (SP.RUR.TOTL.ZS, SP.RUR.TOTL, SP.RUR.TOTL.ZG), esa_source (HDX), esa_processed (2026-04-11).
Quick Start
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/africa-world-bank-agriculture-and-rural-development-indicators-for-morocco")
train = ds["train"].to_pandas()
test = ds["test"].to_pandas()
print(train.shape)
train.head()
Schema
| Column | Type | Null % | Range / Sample Values |
|---|---|---|---|
country_name |
object | 0.0% | Morocco |
country_iso3 |
object | 0.0% | MAR |
year |
int64 | 0.0% | 1960.0 – 2025.0 (mean 1994.4939) |
indicator_name |
object | 0.0% | Rural population (% of total population), Rural population, Rural population growth (annual %) |
indicator_code |
object | 0.0% | SP.RUR.TOTL.ZS, SP.RUR.TOTL, SP.RUR.TOTL.ZG |
value |
float64 | 0.0% | -0.089 – 17011322487.7521 (mean 217461035.8183) |
esa_source |
object | 0.0% | HDX |
esa_processed |
object | 0.0% | 2026-04-11 |
Numeric Summary
| Column | Min | Max | Mean | Median |
|---|---|---|---|---|
year |
1960.0 | 2025.0 | 1994.4939 | 1996.0 |
value |
-0.089 | 17011322487.7521 | 217461035.8183 | 65.2902 |
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 World Bank Group 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 for the publisher's own methodology notes and caveats.
Citation
@dataset{hdx_africa_world_bank_agriculture_and_rural_development_indicators_for_morocco,
title = {Morocco - Agriculture and Rural Development},
author = {World Bank Group},
year = {2026},
url = {https://data.humdata.org/dataset/world-bank-agriculture-and-rural-development-indicators-for-morocco},
note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
}
Electric Sheep Africa — Africa's ML dataset infrastructure. Lagos, Nigeria.
- Downloads last month
- 27