Standardize Electric Sheep Africa dataset card
Browse files
README.md
CHANGED
|
@@ -5,88 +5,113 @@ language:
|
|
| 5 |
task_categories:
|
| 6 |
- tabular-classification
|
| 7 |
- tabular-regression
|
| 8 |
-
multilinguality:
|
| 9 |
size_categories:
|
| 10 |
- n<1K
|
| 11 |
tags:
|
| 12 |
-
- tabular
|
| 13 |
-
-
|
| 14 |
-
-
|
| 15 |
-
-
|
| 16 |
-
-
|
| 17 |
-
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
---
|
| 20 |
|
| 21 |
-
#
|
| 22 |
|
| 23 |
-
153 rows - 1 Africa country - not-
|
| 24 |
|
| 25 |

|
| 26 |

|
| 27 |
-

|
| 29 |

|
| 30 |
|
| 31 |
## TL;DR
|
| 32 |
|
| 33 |
-
This dataset
|
| 34 |
-
ML-ready Parquet. The source file is the provenance boundary; all usable
|
| 35 |
-
indicators or tabular columns from the resource stay together in this repo.
|
| 36 |
|
| 37 |
-
##
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
-
## Geographic
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
|
| 51 |
-
|------
|
| 52 |
| `MAR` | 153 | n/a | n/a | `Morocco` |
|
| 53 |
|
| 54 |
-
## Indicators
|
| 55 |
|
| 56 |
-
- This source
|
| 57 |
|
| 58 |
## Schema
|
| 59 |
|
| 60 |
| Column | Type | Description | Example |
|
| 61 |
|--------|------|-------------|---------|
|
| 62 |
-
| `source_record_id` | `string` | Stable row identifier
|
| 63 |
-
| `country_iso3` | `string` | ISO3 country code. | `MAR` |
|
| 64 |
-
| `country_name` | `string` | Country name. | `Morocco` |
|
| 65 |
-
| `source_sheet` | `string` |
|
| 66 |
-
| `column` | `string` | Source column. | `المحكمة الابتدائية ببرشيد` |
|
| 67 |
-
| `d_1675` | `int64` | Source column. | `3522` |
|
| 68 |
-
| `d_578` | `int64` | Source column. | `3004` |
|
| 69 |
-
| `d_2253` | `int64` | Source column. | `6526` |
|
| 70 |
-
| `d_17784` | `int64` | Source column. | `21919` |
|
| 71 |
-
| `d_62303` | `int64` | Source column. | `48174` |
|
| 72 |
-
| `d_80087` | `int64` | Source column. | `70093` |
|
| 73 |
-
| `d_19459` | `int64` | Source column. | `25441` |
|
| 74 |
-
| `d_62881` | `int64` | Source column. | `51178` |
|
| 75 |
-
| `d_82340` | `int64` | Source column. | `76619` |
|
| 76 |
-
| `d_18469` | `int64` | Source column. | `23132` |
|
| 77 |
-
| `d_62369` | `int64` | Source column. | `48233` |
|
| 78 |
-
| `d_80838` | `int64` | Source column. | `71365` |
|
| 79 |
-
| `d_990` | `int64` | Source column. | `2309` |
|
| 80 |
-
| `d_512` | `int64` | Source column. | `2945` |
|
| 81 |
-
| `d_1502` | `int64` | Source column. | `5254` |
|
| 82 |
| `source_provider` | `string` | Publishing organization. | `MJ` |
|
| 83 |
-
| `source_dataset` | `string` | Source package title. | `Activité des tribunaux de première instance et leurs centres de juges
|
| 84 |
-
| `source_resource` | `string` | Source resource title. | `النشاط العام للمحاكم الابتدائية والمراكز التابعة لها سنة 2022.xlsx` |
|
| 85 |
-
| `source_package_id` | `string` |
|
| 86 |
-
| `source_resource_id` | `string` |
|
| 87 |
-
| `source_url` | `string` | Original source
|
| 88 |
| `license_id` | `string` | Source license identifier. | `odc-odbl` |
|
| 89 |
-
| `retrieved_at` | `string` | UTC retrieval timestamp. | `2026-07-16T21:31:48Z` |
|
| 90 |
|
| 91 |
## Usage
|
| 92 |
|
|
@@ -98,29 +123,76 @@ df = ds["train"].to_pandas()
|
|
| 98 |
print(df.head())
|
| 99 |
```
|
| 100 |
|
| 101 |
-
###
|
| 102 |
|
| 103 |
```python
|
| 104 |
-
|
|
|
|
| 105 |
```
|
| 106 |
|
| 107 |
-
###
|
| 108 |
|
| 109 |
```python
|
| 110 |
-
if "
|
| 111 |
-
|
| 112 |
-
sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
|
| 113 |
```
|
| 114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
## Citation
|
| 116 |
|
| 117 |
```bibtex
|
| 118 |
@misc{electric_sheep_africa_africa_morocco_activite_des_tribunaux_de_premiere_instance_et_leurs_centr_437f31_2026,
|
| 119 |
-
title = {
|
| 120 |
author = {MJ},
|
| 121 |
year = {2026},
|
| 122 |
url = {https://data.gov.ma/data/dataset/activite-des-tribunaux-de-premiere-instance-et-leurs-centres-de-juges-residents-2022},
|
| 123 |
-
publisher = {
|
| 124 |
howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-morocco-activite-des-tribunaux-de-premiere-instance-et-leurs-centr-437f313b}}
|
| 125 |
}
|
| 126 |
```
|
|
@@ -129,20 +201,14 @@ if "indicator_id" in df.columns:
|
|
| 129 |
|
| 130 |
Released under [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/).
|
| 131 |
|
| 132 |
-
Original data
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
## About Electric Sheep
|
| 136 |
|
| 137 |
-
|
| 138 |
-
ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
|
| 139 |
-
open sources, normalize the schemas, package as Parquet, and publish with
|
| 140 |
-
consistent dataset cards so researchers and developers can use `load_dataset()`
|
| 141 |
-
to start working in seconds.
|
| 142 |
|
| 143 |
-
|
| 144 |
|
| 145 |
---
|
| 146 |
|
| 147 |
-
Provenance:
|
| 148 |
-
https://data.gov.ma/data/fr/dataset/2c4adfbc-9f55-4faa-a9c3-0277113caa15/resource/abee5b8c-f0c9-4213-a434-1a2f2b7ea8fc/download/-2022.xlsx
|
|
|
|
| 5 |
task_categories:
|
| 6 |
- tabular-classification
|
| 7 |
- tabular-regression
|
| 8 |
+
multilinguality: multilingual
|
| 9 |
size_categories:
|
| 10 |
- n<1K
|
| 11 |
tags:
|
| 12 |
+
- "tabular"
|
| 13 |
+
- "africa"
|
| 14 |
+
- "open-data"
|
| 15 |
+
- "official-statistics"
|
| 16 |
+
- "morocco"
|
| 17 |
+
- "mj"
|
| 18 |
+
- "morocco-open-data"
|
| 19 |
+
- "justice"
|
| 20 |
+
- "juges-residents"
|
| 21 |
+
- "premiere-instance"
|
| 22 |
+
- "tribunaux"
|
| 23 |
+
configs:
|
| 24 |
+
- config_name: default
|
| 25 |
+
data_files:
|
| 26 |
+
- split: train
|
| 27 |
+
path: data/train-00000-of-00001.parquet
|
| 28 |
+
pretty_name: "Activite Des Tribunaux De Premiere Instance Et Leurs Centr | Africa (Morocco Open Data)"
|
| 29 |
---
|
| 30 |
|
| 31 |
+
# Activite Des Tribunaux De Premiere Instance Et Leurs Centr | Africa (Morocco Open Data)
|
| 32 |
|
| 33 |
+
**153 rows** - **1 Africa country/area** - **time not specified** - **source table** - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
|
| 34 |
|
| 35 |

|
| 36 |

|
| 37 |
+

|
| 38 |

|
| 39 |

|
| 40 |
|
| 41 |
## TL;DR
|
| 42 |
|
| 43 |
+
This dataset contains **153 rows** from **Morocco Open Data**, covering **Activite Des Tribunaux De Premiere Instance Et Leurs Centr**. It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading examples.
|
|
|
|
|
|
|
| 44 |
|
| 45 |
+
## What This Dataset Measures
|
| 46 |
|
| 47 |
+
Official statistics datasets help analysts inspect public data as published by governments, national statistical systems, and regional data portals.
|
| 48 |
+
|
| 49 |
+
Source-provided context: Ce fichier présente l'activité détaillée des tribunaux de première instance et leurs centres de juges résidents en 2022
|
| 50 |
+
|
| 51 |
+
## How To Read This Dataset
|
| 52 |
+
|
| 53 |
+
- **One row means:** one source record from the original tabular resource, with Electric Sheep Africa provenance columns added where available.
|
| 54 |
+
- **Primary geography column:** `country_iso3`.
|
| 55 |
+
- **Best time column:** `not detected`.
|
| 56 |
+
- **Time coverage basis:** not detected.
|
| 57 |
+
- **Recommended join keys:** `country_iso3` where available plus source-specific keys.
|
| 58 |
+
|
| 59 |
+
## Coverage
|
| 60 |
+
|
| 61 |
+
| Dimension | Value |
|
| 62 |
+
|---|---:|
|
| 63 |
+
| Rows | 153 |
|
| 64 |
+
| Countries/areas | 1 |
|
| 65 |
+
| First period | n/a |
|
| 66 |
+
| Last period | n/a |
|
| 67 |
+
| Indicators | 0 |
|
| 68 |
+
| Columns | 28 |
|
| 69 |
+
| Source format | XLSX |
|
| 70 |
|
| 71 |
+
## Geographic Coverage
|
| 72 |
|
| 73 |
+
Top areas shown below, sorted by row count when available:
|
| 74 |
|
| 75 |
+
| Area | Rows | First year | Last year | Name |
|
| 76 |
+
|------|-----:|-----------:|----------:|------|
|
| 77 |
| `MAR` | 153 | n/a | n/a | `Morocco` |
|
| 78 |
|
| 79 |
+
## Indicators, Variables, Or Resource Contents
|
| 80 |
|
| 81 |
+
- This repo preserves one source tabular resource with its usable columns kept together.
|
| 82 |
|
| 83 |
## Schema
|
| 84 |
|
| 85 |
| Column | Type | Description | Example |
|
| 86 |
|--------|------|-------------|---------|
|
| 87 |
+
| `source_record_id` | `string` | Stable row identifier assigned during Electric Sheep Africa engineering. | `abee5b8c-f0c9-4213-a434-1a2f2b7ea8fc:2022:0` |
|
| 88 |
+
| `country_iso3` | `string` | ISO3 country or area code. | `MAR` |
|
| 89 |
+
| `country_name` | `string` | Country or area name. | `Morocco` |
|
| 90 |
+
| `source_sheet` | `string` | Source column from the original resource. | `الابتدائيات+ المراكز 2022` |
|
| 91 |
+
| `column` | `string` | Source column from the original resource. | `المحكمة الابتدائية ببرشيد` |
|
| 92 |
+
| `d_1675` | `int64` | Source column from the original resource. | `3522` |
|
| 93 |
+
| `d_578` | `int64` | Source column from the original resource. | `3004` |
|
| 94 |
+
| `d_2253` | `int64` | Source column from the original resource. | `6526` |
|
| 95 |
+
| `d_17784` | `int64` | Source column from the original resource. | `21919` |
|
| 96 |
+
| `d_62303` | `int64` | Source column from the original resource. | `48174` |
|
| 97 |
+
| `d_80087` | `int64` | Source column from the original resource. | `70093` |
|
| 98 |
+
| `d_19459` | `int64` | Source column from the original resource. | `25441` |
|
| 99 |
+
| `d_62881` | `int64` | Source column from the original resource. | `51178` |
|
| 100 |
+
| `d_82340` | `int64` | Source column from the original resource. | `76619` |
|
| 101 |
+
| `d_18469` | `int64` | Source column from the original resource. | `23132` |
|
| 102 |
+
| `d_62369` | `int64` | Source column from the original resource. | `48233` |
|
| 103 |
+
| `d_80838` | `int64` | Source column from the original resource. | `71365` |
|
| 104 |
+
| `d_990` | `int64` | Source column from the original resource. | `2309` |
|
| 105 |
+
| `d_512` | `int64` | Source column from the original resource. | `2945` |
|
| 106 |
+
| `d_1502` | `int64` | Source column from the original resource. | `5254` |
|
| 107 |
| `source_provider` | `string` | Publishing organization. | `MJ` |
|
| 108 |
+
| `source_dataset` | `string` | Source dataset or package title. | `Activité des tribunaux de première instance et leurs centres de juges...` |
|
| 109 |
+
| `source_resource` | `string` | Source resource title, table name, or file name. | `النشاط العام للمحاكم الابتدائية والمراكز التابعة لها سنة 2022.xlsx` |
|
| 110 |
+
| `source_package_id` | `string` | Source package identifier. | `2c4adfbc-9f55-4faa-a9c3-0277113caa15` |
|
| 111 |
+
| `source_resource_id` | `string` | Source resource identifier. | `abee5b8c-f0c9-4213-a434-1a2f2b7ea8fc` |
|
| 112 |
+
| `source_url` | `string` | Original source URL or download URL. | `https://data.gov.ma/data/fr/dataset/2c4adfbc-9f55-4faa-a9c3-0277113ca...` |
|
| 113 |
| `license_id` | `string` | Source license identifier. | `odc-odbl` |
|
| 114 |
+
| `retrieved_at` | `string` | UTC source retrieval timestamp from the Electric Sheep Africa pipeline. | `2026-07-16T21:31:48Z` |
|
| 115 |
|
| 116 |
## Usage
|
| 117 |
|
|
|
|
| 123 |
print(df.head())
|
| 124 |
```
|
| 125 |
|
| 126 |
+
### Inspect Columns
|
| 127 |
|
| 128 |
```python
|
| 129 |
+
print(df.info())
|
| 130 |
+
print(df.head())
|
| 131 |
```
|
| 132 |
|
| 133 |
+
### Filter By Geography
|
| 134 |
|
| 135 |
```python
|
| 136 |
+
if "country_iso3" in df.columns:
|
| 137 |
+
sample = df[df["country_iso3"] == "MAR"]
|
|
|
|
| 138 |
```
|
| 139 |
|
| 140 |
+
### Time-Series Pattern
|
| 141 |
+
|
| 142 |
+
```python
|
| 143 |
+
if "value" in df.columns and "year" in df.columns:
|
| 144 |
+
trend = df.sort_values("year")
|
| 145 |
+
```
|
| 146 |
+
|
| 147 |
+
### Pivot For Analysis
|
| 148 |
+
|
| 149 |
+
```python
|
| 150 |
+
if {"indicator_id", "year", "value"}.issubset(df.columns):
|
| 151 |
+
matrix = df.pivot_table(index="year", columns="indicator_id", values="value")
|
| 152 |
+
print(matrix.tail())
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
## Data Quality Notes
|
| 156 |
+
|
| 157 |
+
- No canonical year/date column was detected in the packaged table; use source metadata and domain context for temporal interpretation.
|
| 158 |
+
- Missing values are preserved rather than silently imputed.
|
| 159 |
+
- Column names are standardized for machine use; source meanings are preserved where known.
|
| 160 |
+
- Always confirm source methodology, units, and collection definitions before policy, production, or redistribution-sensitive use.
|
| 161 |
+
|
| 162 |
+
## Source And Provenance
|
| 163 |
+
|
| 164 |
+
- **Source:** [Morocco Open Data](https://data.gov.ma/data/dataset/activite-des-tribunaux-de-premiere-instance-et-leurs-centres-de-juges-residents-2022)
|
| 165 |
+
- **Publisher:** MJ
|
| 166 |
+
- **Portal:** [https://data.gov.ma/data](https://data.gov.ma/data)
|
| 167 |
+
- **Resource:** [النشاط العام للمحاكم الابتدائية والمراكز التابعة لها سنة 2022.xlsx](https://data.gov.ma/data/fr/dataset/2c4adfbc-9f55-4faa-a9c3-0277113caa15/resource/abee5b8c-f0c9-4213-a434-1a2f2b7ea8fc/download/-2022.xlsx)
|
| 168 |
+
- **License:** [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/)
|
| 169 |
+
- **Retrieved/generated:** `2026-07-16T22:10:33Z`
|
| 170 |
+
- **Hugging Face repo:** [electricsheepafrica/africa-morocco-activite-des-tribunaux-de-premiere-instance-et-leurs-centr-437f313b](https://huggingface.co/datasets/electricsheepafrica/africa-morocco-activite-des-tribunaux-de-premiere-instance-et-leurs-centr-437f313b)
|
| 171 |
+
|
| 172 |
+
## Transformations Applied
|
| 173 |
+
|
| 174 |
+
- Converted the source table to Parquet for efficient analytics and ML workflows.
|
| 175 |
+
- Added or preserved source provenance columns where available.
|
| 176 |
+
- Standardized README metadata, dataset loading configuration, schema documentation, and citation format.
|
| 177 |
+
- Preserved source-reported values without analytical imputation.
|
| 178 |
+
|
| 179 |
+
## Suggested Analyses
|
| 180 |
+
|
| 181 |
+
- Profile the distribution of values
|
| 182 |
+
- Compare categories or geographies
|
| 183 |
+
- Join with complementary public datasets
|
| 184 |
+
- Check missingness before modeling
|
| 185 |
+
- Use `country_iso3` as the safest geography join key when present
|
| 186 |
+
|
| 187 |
## Citation
|
| 188 |
|
| 189 |
```bibtex
|
| 190 |
@misc{electric_sheep_africa_africa_morocco_activite_des_tribunaux_de_premiere_instance_et_leurs_centr_437f31_2026,
|
| 191 |
+
title = {Activite Des Tribunaux De Premiere Instance Et Leurs Centr | Africa (Morocco Open Data)},
|
| 192 |
author = {MJ},
|
| 193 |
year = {2026},
|
| 194 |
url = {https://data.gov.ma/data/dataset/activite-des-tribunaux-de-premiere-instance-et-leurs-centres-de-juges-residents-2022},
|
| 195 |
+
publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
|
| 196 |
howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-morocco-activite-des-tribunaux-de-premiere-instance-et-leurs-centr-437f313b}}
|
| 197 |
}
|
| 198 |
```
|
|
|
|
| 201 |
|
| 202 |
Released under [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/).
|
| 203 |
|
| 204 |
+
Original data is published by MJ. Electric Sheep Africa
|
| 205 |
+
engineering standardizes the data for discovery, loading, and analysis on
|
| 206 |
+
Hugging Face. Cite both the original source and this ML-ready dataset when used.
|
|
|
|
| 207 |
|
| 208 |
+
## About Electric Sheep Africa
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
|
| 210 |
+
Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
|
| 211 |
|
| 212 |
---
|
| 213 |
|
| 214 |
+
Provenance: README standardized 2026-08-11 by the Electric Sheep Africa README system. Source URL: https://data.gov.ma/data/dataset/activite-des-tribunaux-de-premiere-instance-et-leurs-centres-de-juges-residents-2022
|
|
|