Dataset Viewer
Auto-converted to Parquet Duplicate
country_name
stringclasses
1 value
country_iso3
stringclasses
1 value
year
int64
1.96k
2.03k
indicator_name
stringclasses
884 values
indicator_code
stringclasses
884 values
value
float64
0
12.5M
esa_source
stringclasses
1 value
esa_processed
stringdate
2026-04-27 00:00:00
2026-04-27 00:00:00
Morocco
MAR
1,984
Repetition rate in Grade 2 of primary education, male (%)
UIS.REPR.1.G2.M
18.73685
HDX
2026-04-27
Morocco
MAR
2,004
Repetition rate in Grade 5 of primary education, male (%)
UIS.REPR.1.G5.M
11.81616
HDX
2026-04-27
Morocco
MAR
2,019
Gross enrolment ratio, primary and secondary, both sexes (%)
UIS.GER.123
98.57009
HDX
2026-04-27
Morocco
MAR
2,014
Population, ages 13-18, total
SP.POP.1318.TO.UN
3,584,063
HDX
2026-04-27
Morocco
MAR
2,005
Total inbound internationally mobile students, female (number)
UIS.MS.56.F
1,428
HDX
2026-04-27
Morocco
MAR
2,024
Primary education, teachers
SE.PRM.TCHR
189,855
HDX
2026-04-27
Morocco
MAR
1,975
Barro-Lee: Percentage of population age 35-39 with no education
BAR.NOED.3539.ZS
86.86
HDX
2026-04-27
Morocco
MAR
1,987
School enrollment, tertiary (% gross)
SE.TER.ENRR
8.55086
HDX
2026-04-27
Morocco
MAR
1,976
Repetition rate in Grade 1 of primary education, both sexes (%)
UIS.REPR.1.G1
26.22552
HDX
2026-04-27
Morocco
MAR
1,980
Barro-Lee: Average years of total schooling, age 50-54, female
BAR.SCHL.5054.FE
0.19
HDX
2026-04-27
Morocco
MAR
2,022
Persistence to last grade of primary, total (% of cohort)
SE.PRM.PRSL.ZS
93.730583
HDX
2026-04-27
Morocco
MAR
2,015
Population, ages 14-18, total
SP.POP.1418.TO.UN
2,970,123
HDX
2026-04-27
Morocco
MAR
1,990
School life expectancy, primary and secondary, male (years)
UIS.SLE.123.M
7.06583
HDX
2026-04-27
Morocco
MAR
2,005
Barro-Lee: Average years of primary schooling, age 55-59, total
BAR.PRM.SCHL.5559
1.15
HDX
2026-04-27
Morocco
MAR
1,979
School enrollment, preprimary, male (% gross)
SE.PRE.ENRR.MA
62.839218
HDX
2026-04-27
Morocco
MAR
2,000
Repetition rate in Grade 1 of primary education, female (%)
UIS.REPR.1.G1.F
16.1408
HDX
2026-04-27
Morocco
MAR
2,019
School age population, secondary education, both sexes (number)
SP.SEC.TOTL.IN
3,597,672
HDX
2026-04-27
Morocco
MAR
2,005
Barro-Lee: Percentage of population age 60-64 with tertiary schooling. Total (Incomplete and Completed Tertiary)
BAR.TER.ICMP.6064.ZS
0.7
HDX
2026-04-27
Morocco
MAR
1,995
Barro-Lee: Average years of secondary schooling, age 30-34, total
BAR.SEC.SCHL.3034
1.41
HDX
2026-04-27
Morocco
MAR
2,011
Over-age students, primary (% of enrollment)
SE.PRM.OENR.ZS
13.22256
HDX
2026-04-27
Morocco
MAR
1,980
Children out of school (% of primary school age)
SE.PRM.UNER.ZS
43.084469
HDX
2026-04-27
Morocco
MAR
1,999
Total inbound internationally mobile students, both sexes (number)
UIS.MS.56.T
4,190
HDX
2026-04-27
Morocco
MAR
2,010
Barro-Lee: Percentage of population age 25+ with secondary schooling. Completed Secondary
BAR.SEC.CMPT.25UP.ZS
9.19
HDX
2026-04-27
Morocco
MAR
1,978
Repeaters in Grade 1 of primary education, both sexes (number)
UIS.R.1.G1
107,024
HDX
2026-04-27
Morocco
MAR
1,996
Number of infant deaths, female
SH.DTH.IMRT.FE
15,775
HDX
2026-04-27
Morocco
MAR
2,007
Secondary education, vocational pupils
SE.SEC.ENRL.VO
120,133
HDX
2026-04-27
Morocco
MAR
2,000
Theoretical duration of post-secondary non-tertiary education (years)
UIS.THDUR.4.A.GPV
2
HDX
2026-04-27
Morocco
MAR
1,990
Population, ages 6-9, total
SP.POP.0609.TO.UN
2,705,807
HDX
2026-04-27
Morocco
MAR
1,980
Barro-Lee: Percentage of female population age 20-24 with primary schooling. Completed Primary
BAR.PRM.CMPT.2024.FE.ZS
8.99
HDX
2026-04-27
Morocco
MAR
2,011
Population, age 17, total
SP.POP.AG17.TO.UN
630,473
HDX
2026-04-27
Morocco
MAR
2,009
Population ages 15-64 (% of total population)
SP.POP.1564.TO.ZS
65.446988
HDX
2026-04-27
Morocco
MAR
2,009
Population, ages 13-16, total
SP.POP.1316.TO.UN
2,519,903
HDX
2026-04-27
Morocco
MAR
1,990
Barro-Lee: Population in thousands, age 25-29, total
BAR.POP.2529
2,001
HDX
2026-04-27
Morocco
MAR
2,001
Population, age 17, total
SP.POP.AG17.TO.UN
677,330
HDX
2026-04-27
Morocco
MAR
2,005
Barro-Lee: Percentage of population age 25-29 with tertiary schooling. Total (Incomplete and Completed Tertiary)
BAR.TER.ICMP.2529.ZS
10.62
HDX
2026-04-27
Morocco
MAR
1,979
School age population, lower secondary education, male (number)
SP.SEC.LTOT.MA.IN
1,036,554
HDX
2026-04-27
Morocco
MAR
2,019
Repeaters in lower secondary general education, all grades, both sexes (number)
UIS.R.2.GPV
359,552
HDX
2026-04-27
Morocco
MAR
1,997
Persistence to grade 5, total (% of cohort)
SE.PRM.PRS5.ZS
75.11515
HDX
2026-04-27
Morocco
MAR
1,998
Current education expenditure, tertiary (% of total expenditure in tertiary public institutions)
SE.XPD.CTER.ZS
87.599609
HDX
2026-04-27
Morocco
MAR
2,014
Repetition rate in Grade 4 of primary education, female (%)
UIS.REPR.1.G4.F
5.87633
HDX
2026-04-27
Morocco
MAR
1,977
Gross intake ratio in first grade of primary education, total (% of relevant age group)
SE.PRM.GINT.ZS
58.68514
HDX
2026-04-27
Morocco
MAR
2,006
Gross enrolment ratio, upper secondary, male (%)
SE.SEC.ENRR.UP.MA
39.26263
HDX
2026-04-27
Morocco
MAR
2,010
Population, age 9, total
SP.POP.AG09.TO.UN
588,925
HDX
2026-04-27
Morocco
MAR
1,999
Probability of dying among youth ages 20-24 years (per 1,000)
SH.DYN.2024
4.9
HDX
2026-04-27
Morocco
MAR
2,005
Repetition rate in Grade 3 of primary education, female (%)
UIS.REPR.1.G3.F
11.18153
HDX
2026-04-27
Morocco
MAR
2,012
Population, ages 7-9, female
SP.POP.0709.FE.UN
871,706
HDX
2026-04-27
Morocco
MAR
1,985
Barro-Lee: Percentage of population age 35-39 with primary schooling. Completed Primary
BAR.PRM.CMPT.3539.ZS
4.3
HDX
2026-04-27
Morocco
MAR
1,995
Population, ages 12-17, total
SP.POP.1217.TO.UN
3,824,549
HDX
2026-04-27
Morocco
MAR
1,985
Barro-Lee: Percentage of population age 50-54 with primary schooling. Total (Incomplete and Completed Primary)
BAR.PRM.ICMP.5054.ZS
3.1
HDX
2026-04-27
Morocco
MAR
1,994
Children out of school, female (% of female primary school age)
SE.PRM.UNER.FE.ZS
46.794029
HDX
2026-04-27
Morocco
MAR
1,999
School enrollment, preprimary (% gross)
SE.PRE.ENRR
61.079441
HDX
2026-04-27
Morocco
MAR
1,976
Survival rate to Grade 5 of primary education, gender parity index (GPI)
UIS.SR.1.G5.GPI
0.99352
HDX
2026-04-27
Morocco
MAR
2,001
School enrollment, secondary (% gross)
SE.SEC.ENRR
41.315659
HDX
2026-04-27
Morocco
MAR
1,999
Population, age 16, total
SP.POP.AG16.TO.UN
670,432
HDX
2026-04-27
Morocco
MAR
2,007
Population, age 6, male
SP.POP.AG06.MA.UN
299,878
HDX
2026-04-27
Morocco
MAR
1,976
Repetition rate in Grade 4 of primary education, both sexes (%)
UIS.REPR.1.G4
31.20328
HDX
2026-04-27
Morocco
MAR
2,020
Persistence to last grade of primary, total (% of cohort)
SE.PRM.PRSL.ZS
91.993378
HDX
2026-04-27
Morocco
MAR
1,996
Population, ages 6-12, total
SP.POP.0612.TO.UN
4,782,897
HDX
2026-04-27
Morocco
MAR
2,012
Population, ages 7-10, male
SP.POP.0710.MA.UN
1,200,409
HDX
2026-04-27
Morocco
MAR
1,986
School enrollment, primary (% gross)
SE.PRM.ENRR
75.532791
HDX
2026-04-27
Morocco
MAR
1,995
Barro-Lee: Percentage of population age 50-54 with secondary schooling. Completed Secondary
BAR.SEC.CMPT.5054.ZS
3.76
HDX
2026-04-27
Morocco
MAR
1,995
Barro-Lee: Percentage of female population age 60-64 with tertiary schooling. Total (Incomplete and Completed Tertiary)
BAR.TER.ICMP.6064.FE.ZS
0.05
HDX
2026-04-27
Morocco
MAR
2,003
Repetition rate in Grade 3 of primary education, male (%)
UIS.REPR.1.G3.M
16.88594
HDX
2026-04-27
Morocco
MAR
1,998
Repetition rate in Grade 5 of primary education, female (%)
UIS.REPR.1.G5.F
7.45221
HDX
2026-04-27
Morocco
MAR
2,009
Population, ages 10-16, male
SP.POP.1016.MA.UN
2,202,495
HDX
2026-04-27
Morocco
MAR
2,001
School age population, primary education, male (number)
SP.PRM.TOTL.MA.IN
2,017,336
HDX
2026-04-27
Morocco
MAR
1,978
School enrollment, secondary, male (% gross)
SE.SEC.ENRR.MA
24.480471
HDX
2026-04-27
Morocco
MAR
2,008
Lower secondary school starting age (years)
SE.SEC.AGES
12
HDX
2026-04-27
Morocco
MAR
1,986
School enrollment, primary and secondary (gross), gender parity index (GPI)
SE.ENR.PRSC.FM.ZS
0.65238
HDX
2026-04-27
Morocco
MAR
2,004
Primary completion rate, male (% of relevant age group)
SE.PRM.CMPT.MA.ZS
76.157516
HDX
2026-04-27
Morocco
MAR
1,976
Out-of-school rate for children of primary school age, female (%)
UIS.ROFST.1.F
66.58796
HDX
2026-04-27
Morocco
MAR
2,018
Repeaters in Grade 3 of lower secondary general education, female (number)
UIS.R.2.GPV.G3.F
69,774
HDX
2026-04-27
Morocco
MAR
1,997
Population, age 25, total
SP.POP.AG25.TO.UN
483,599
HDX
2026-04-27
Morocco
MAR
1,981
Over-age students, primary, male (% of male enrollment)
SE.PRM.OENR.MA.ZS
23.78608
HDX
2026-04-27
Morocco
MAR
2,003
Population, age 19, female
SP.POP.AG19.FE.UN
326,876
HDX
2026-04-27
Morocco
MAR
1,965
Barro-Lee: Percentage of population age 45-49 with tertiary schooling. Total (Incomplete and Completed Tertiary)
BAR.TER.ICMP.4549.ZS
0.05
HDX
2026-04-27
Morocco
MAR
1,999
Secondary education, duration (years)
SE.SEC.DURS
6
HDX
2026-04-27
Morocco
MAR
2,010
Barro-Lee: Average years of tertiary schooling, age 40-44, female
BAR.TER.SCHL.4044.FE
0.27
HDX
2026-04-27
Morocco
MAR
2,000
Population, age 14, female
SP.POP.AG14.FE.UN
335,295
HDX
2026-04-27
Morocco
MAR
2,000
Barro-Lee: Average years of total schooling, age 30-34, female
BAR.SCHL.3034.FE
3.62
HDX
2026-04-27
Morocco
MAR
1,975
Barro-Lee: Percentage of female population age 40-44 with primary schooling. Total (Incomplete and Completed Primary)
BAR.PRM.ICMP.4044.FE.ZS
1.2
HDX
2026-04-27
Morocco
MAR
1,982
School life expectancy, primary and secondary, male (years)
UIS.SLE.123.M
7.27111
HDX
2026-04-27
Morocco
MAR
2,016
School enrollment, preprimary, female (% gross)
SE.PRE.ENRR.FE
45.787331
HDX
2026-04-27
Morocco
MAR
2,001
Repeaters in primary education, all grades, both sexes (number)
UIS.R.1
486,060
HDX
2026-04-27
Morocco
MAR
1,997
School age population, primary education, female (number)
SP.PRM.TOTL.FE.IN
1,963,964
HDX
2026-04-27
Morocco
MAR
2,016
Progression to secondary school (%)
SE.SEC.PROG.ZS
90.23321
HDX
2026-04-27
Morocco
MAR
1,990
Barro-Lee: Percentage of population age 50-54 with primary schooling. Total (Incomplete and Completed Primary)
BAR.PRM.ICMP.5054.ZS
5.12
HDX
2026-04-27
Morocco
MAR
2,009
Repeaters in Grade 2 of primary education, female (number)
UIS.R.1.G2.F
37,246
HDX
2026-04-27
Morocco
MAR
1,992
Population, age 15, female
SP.POP.AG15.FE.UN
291,152
HDX
2026-04-27
Morocco
MAR
1,991
Population, age 7, total
SP.POP.AG07.TO.UN
690,809
HDX
2026-04-27
Morocco
MAR
1,995
Barro-Lee: Percentage of female population age 25+ with tertiary schooling. Completed Tertiary
BAR.TER.CMPT.25UP.FE.ZS
2.38
HDX
2026-04-27
Morocco
MAR
1,960
Barro-Lee: Average years of tertiary schooling, age 30-34, total
BAR.TER.SCHL.3034
0
HDX
2026-04-27
Morocco
MAR
1,990
Barro-Lee: Population in thousands, age 50-54, total
BAR.POP.5054
778
HDX
2026-04-27
Morocco
MAR
1,990
Barro-Lee: Percentage of female population age 30-34 with secondary schooling. Total (Incomplete and Completed Secondary)
BAR.SEC.ICMP.3034.FE.ZS
8.44
HDX
2026-04-27
Morocco
MAR
1,985
Barro-Lee: Percentage of female population age 15-19 with primary schooling. Completed Primary
BAR.PRM.CMPT.1519.FE.ZS
14.12
HDX
2026-04-27
Morocco
MAR
2,008
Population, age 13, total
SP.POP.AG13.TO.UN
629,022
HDX
2026-04-27
Morocco
MAR
2,013
Repetition rate in Grade 4 of primary education, female (%)
UIS.REPR.1.G4.F
6.61948
HDX
2026-04-27
Morocco
MAR
1,975
Barro-Lee: Population in thousands, age 50-54, total
BAR.POP.5054
474
HDX
2026-04-27
Morocco
MAR
2,014
Population, ages 10-14, female
SP.POP.1014.FE.UN
1,437,061
HDX
2026-04-27
Morocco
MAR
1,997
School age population, lower secondary education, male (number)
SP.SEC.LTOT.MA.IN
1,008,903
HDX
2026-04-27
End of preview. Expand in Data Studio

Morocco - Education

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.

Education is one of the most powerful instruments for reducing poverty and inequality and lays a foundation for sustained economic growth. The World Bank compiles data on education inputs, participation, efficiency, and outcomes. Data on education are compiled by the United Nations Educational, Scientific, and Cultural Organization (UNESCO) Institute for Statistics from official responses to surveys and from reports provided by education authorities in each country.

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 Education
Unit of observation Country-level aggregates
Rows (total) 18,943
Columns 8 (2 numeric, 6 categorical, 0 datetime)
Train split 15,154 rows
Test split 3,788 rows
Geographic scope MAR
Publisher World Bank Group
HDX last updated 2026-03-27

Variables

Geographiccountry_name (Morocco), country_iso3 (MAR), year (range 1960.0–2025.0).

Outcome / Measurementvalue (range 0.0–12631464.0).

Identifier / Metadataindicator_name (Population ages 15-64 (% of total population), Population ages 0-14 (% of total population), Number of infant deaths, male), indicator_code (SP.POP.1564.TO.ZS, SP.POP.0014.TO.ZS, SH.DTH.IMRT.MA), esa_source (HDX), esa_processed (2026-04-27).


Quick Start

from datasets import load_dataset

ds    = load_dataset("electricsheepafrica/africa-education-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 1997.1898)
indicator_name object 0.0% Population ages 15-64 (% of total population), Population ages 0-14 (% of total population), Number of infant deaths, male
indicator_code object 0.0% SP.POP.1564.TO.ZS, SP.POP.0014.TO.ZS, SH.DTH.IMRT.MA
value float64 0.0% 0.0 – 12631464.0 (mean 537815.796)
esa_source object 0.0% HDX
esa_processed object 0.0% 2026-04-27

Numeric Summary

Column Min Max Mean Median
year 1960.0 2025.0 1997.1898 1999.0
value 0.0 12631464.0 537815.796 92.7459

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_education_morocco,
  title     = {Morocco - Education},
  author    = {World Bank Group},
  year      = {2026},
  url       = {https://data.humdata.org/dataset/world-bank-education-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
9

Collection including electricsheepafrica/africa-education-morocco