location_code stringclasses 1
value | location_name stringclasses 1
value | location_level int64 0 0 | language_code stringclasses 6
values | language_name stringclasses 6
values | language_rank int64 1 6 | proportion_value float64 0 0.81 | reliability_score float64 0.73 0.73 | dataset_name stringclasses 1
value | url stringclasses 1
value | source stringclasses 1
value | datetime_published timestamp[ns]date 2014-12-31 00:00:00 2014-12-31 00:00:00 | date_creation timestamp[ns]date 2025-01-22 18:00:31 2025-01-22 18:00:31 | representivity_rating stringclasses 1
value | esa_source stringclasses 1
value | esa_processed stringdate 2026-04-06 00:00:00 2026-04-06 00:00:00 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MAR | Morocco | 0 | hass1238 | Hassaniyya | 6 | 0.002577 | 0.72832 | Morocco Census 2014 (IPUMS extract) | https://api.ipums.org/downloads/ipumsi/api/v1/extracts/2404370/ipumsi_00293.sav.gz | IPUMS International | 2014-12-31T00:00:00 | 2025-01-22T18:00:31 | very_high | HDX | 2026-04-06 |
MAR | Morocco | 0 | stan1324 | Standard Moroccan Tamazight | 3 | 0.050596 | 0.72832 | Morocco Census 2014 (IPUMS extract) | https://api.ipums.org/downloads/ipumsi/api/v1/extracts/2404370/ipumsi_00293.sav.gz | IPUMS International | 2014-12-31T00:00:00 | 2025-01-22T18:00:31 | very_high | HDX | 2026-04-06 |
MAR | Morocco | 0 | Unknown | Unknown | 5 | 0.02101 | 0.72832 | Morocco Census 2014 (IPUMS extract) | https://api.ipums.org/downloads/ipumsi/api/v1/extracts/2404370/ipumsi_00293.sav.gz | IPUMS International | 2014-12-31T00:00:00 | 2025-01-22T18:00:31 | very_high | HDX | 2026-04-06 |
MAR | Morocco | 0 | tari1263 | Tarifiyt-Beni-Iznasen-Eastern Middle Atlas Berber | 4 | 0.025783 | 0.72832 | Morocco Census 2014 (IPUMS extract) | https://api.ipums.org/downloads/ipumsi/api/v1/extracts/2404370/ipumsi_00293.sav.gz | IPUMS International | 2014-12-31T00:00:00 | 2025-01-22T18:00:31 | very_high | HDX | 2026-04-06 |
MAR | Morocco | 0 | tach1250 | Tachelhit | 2 | 0.094868 | 0.72832 | Morocco Census 2014 (IPUMS extract) | https://api.ipums.org/downloads/ipumsi/api/v1/extracts/2404370/ipumsi_00293.sav.gz | IPUMS International | 2014-12-31T00:00:00 | 2025-01-22T18:00:31 | very_high | HDX | 2026-04-06 |
MAR | Morocco | 0 | moro1292 | Moroccan Arabic | 1 | 0.805166 | 0.72832 | Morocco Census 2014 (IPUMS extract) | https://api.ipums.org/downloads/ipumsi/api/v1/extracts/2404370/ipumsi_00293.sav.gz | IPUMS International | 2014-12-31T00:00:00 | 2025-01-22T18:00:31 | very_high | HDX | 2026-04-06 |
Morocco: Languages
Publisher: CLEAR Global (previously Translators without Borders) · Source: HDX · License: cc-by-sa · Updated: 2026-04-06
Abstract
Data on languages spoken in Morocco, showing the main language spoken in the household by proportion of the population. Data is drawn from IPUMS International. For more resources on the languages of Morocco and language use in humanitarian contexts please visit: https://clearglobal.org/language-maps-and-data/
Each row in this dataset represents time-series observations. Temporal coverage is indicated by the datetime_published, date_creation column(s). Geographic scope: MAR.
Curated into ML-ready Parquet format by Electric Sheep Africa.
Dataset Characteristics
| Domain | Demographics and population |
| Unit of observation | Time-series observations |
| Rows (total) | 6 |
| Columns | 16 (4 numeric, 10 categorical, 2 datetime) |
| Train split | 4 rows |
| Test split | 1 rows |
| Geographic scope | MAR |
| Publisher | CLEAR Global (previously Translators without Borders) |
| HDX last updated | 2026-04-06 |
Variables
Geographic — location_code (MAR), location_name (Morocco), location_level (range 0.0–0.0), reliability_score (range 0.7283–0.7283), representivity_rating (very_high).
Temporal — datetime_published, date_creation.
Demographic — language_code (hass1238, stan1324, Unknown), language_name (Hassaniyya, Standard Moroccan Tamazight, Unknown), language_rank (range 1.0–6.0).
Outcome / Measurement — proportion_value (range 0.0026–0.8052).
Identifier / Metadata — dataset_name (Morocco Census 2014 (IPUMS extract)), source (IPUMS International), esa_source (HDX), esa_processed (2026-04-06).
Other — url (https://api.ipums.org/downloads/ipumsi/api/v1/extracts/2404370/ipumsi_00293.sav.gz).
Quick Start
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/africa-morocco-languages")
train = ds["train"].to_pandas()
test = ds["test"].to_pandas()
print(train.shape)
train.head()
Schema
| Column | Type | Null % | Range / Sample Values |
|---|---|---|---|
location_code |
object | 0.0% | MAR |
location_name |
object | 0.0% | Morocco |
location_level |
int64 | 0.0% | 0.0 – 0.0 (mean 0.0) |
language_code |
object | 0.0% | hass1238, stan1324, Unknown |
language_name |
object | 0.0% | Hassaniyya, Standard Moroccan Tamazight, Unknown |
language_rank |
int64 | 0.0% | 1.0 – 6.0 (mean 3.5) |
proportion_value |
float64 | 0.0% | 0.0026 – 0.8052 (mean 0.1667) |
reliability_score |
float64 | 0.0% | 0.7283 – 0.7283 (mean 0.7283) |
dataset_name |
object | 0.0% | Morocco Census 2014 (IPUMS extract) |
url |
object | 0.0% | https://api.ipums.org/downloads/ipumsi/api/v1/extracts/2404370/ipumsi_00293.sav.gz |
source |
object | 0.0% | IPUMS International |
datetime_published |
datetime64[ns] | 0.0% | |
date_creation |
datetime64[ns] | 0.0% | |
representivity_rating |
object | 0.0% | very_high |
esa_source |
object | 0.0% | HDX |
esa_processed |
object | 0.0% | 2026-04-06 |
Numeric Summary
| Column | Min | Max | Mean | Median |
|---|---|---|---|---|
location_level |
0.0 | 0.0 | 0.0 | 0.0 |
language_rank |
1.0 | 6.0 | 3.5 | 3.5 |
proportion_value |
0.0026 | 0.8052 | 0.1667 | 0.0382 |
reliability_score |
0.7283 | 0.7283 | 0.7283 | 0.7283 |
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 CLEAR Global (previously Translators without Borders) 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_morocco_languages,
title = {Morocco: Languages},
author = {CLEAR Global (previously Translators without Borders)},
year = {2026},
url = {https://data.humdata.org/dataset/morocco-languages},
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
- 28