Olaroti commited on
Commit
c9189b3
·
verified ·
1 Parent(s): f4534ad

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +129 -63
README.md CHANGED
@@ -5,78 +5,103 @@ language:
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
8
- multilinguality: monolingual
9
  size_categories:
10
  - n<1K
11
  tags:
12
- - tabular
13
- - xlsx
14
- - africa
15
- - morocco
16
- - official-statistics
17
- - open-data
18
- pretty_name: "Activité détaillée des tribunaux administratifs | Africa (Morocco official open data)"
 
 
 
 
 
 
 
 
 
 
19
  ---
20
 
21
- # Activité détaillée des tribunaux administratifs | Africa (Morocco official open data)
22
 
23
- 134 rows - 1 Africa country - not-applicable - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
24
 
25
  ![rows](https://img.shields.io/badge/rows-134-blue)
26
  ![countries](https://img.shields.io/badge/countries-1-green)
27
- ![years](https://img.shields.io/badge/years-not-applicable-orange)
28
  ![indicators](https://img.shields.io/badge/indicators-0-purple)
29
  ![license](https://img.shields.io/badge/license-odbl-lightgrey)
30
 
31
  ## TL;DR
32
 
33
- This dataset packages one official `XLSX` resource from **Morocco** as
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
- ## About the source
38
 
39
- - **Source:** [Activité détaillée des tribunaux administratifs](https://data.gov.ma/data/dataset/activite-detaillee-des-tribunaux-administratifs-en-2023)
40
- - **Publisher:** MJ
41
- - **Resource:** [النشاط المفصل للمحاكم الإدارية سنة 2024.xlsx](https://data.gov.ma/data/ar/dataset/d274abbb-390e-4058-a270-7f8d0d296298/resource/947d96a6-406b-47de-aa8b-da574b4e3fe9/download/-2024.xlsx)
42
- - **Format:** `XLSX`
43
- - **License:** [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/)
44
- - **Packaging mode:** `tabular_resource`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
- ## Geographic coverage
47
 
48
- 1 Africa country:
49
 
50
- | Country | Rows | First year | Last year | Name |
51
- |---------|-----:|-----------:|----------:|------|
52
  | `MAR` | 134 | n/a | n/a | `Morocco` |
53
 
54
- ## Indicators or Resource Contents
55
 
56
- - This source file is packaged as a normalized tabular resource.
57
 
58
  ## Schema
59
 
60
  | Column | Type | Description | Example |
61
  |--------|------|-------------|---------|
62
- | `source_record_id` | `string` | Stable row identifier for tabular resources. | `947d96a6-406b-47de-aa8b-da574b4e3fe9:dataset:0` |
63
- | `country_iso3` | `string` | ISO3 country code. | `MAR` |
64
- | `country_name` | `string` | Country name. | `Morocco` |
65
- | `source_sheet` | `string` | Workbook sheet name, when the source is a spreadsheet. | `ادارية مفصل` |
66
- | `column` | `string` | Source column. | `الاستعجالي` |
67
- | `d_2023` | `float64` | Source column. | `116.0` |
68
- | `d_2024` | `float64` | Source column. | `2026.0` |
69
- | `d_2024_2` | `float64` | Source column. | `2142.0` |
70
- | `d_2024_3` | `float64` | Source column. | `2101.0` |
71
- | `d_2024_4` | `float64` | Source column. | `41.0` |
72
  | `source_provider` | `string` | Publishing organization. | `MJ` |
73
- | `source_dataset` | `string` | Source package title. | `Activité détaillée des tribunaux administratifs` |
74
- | `source_resource` | `string` | Source resource title. | `النشاط المفصل للمحاكم الإدارية سنة 2024.xlsx` |
75
- | `source_package_id` | `string` | CKAN package UUID. | `d274abbb-390e-4058-a270-7f8d0d296298` |
76
- | `source_resource_id` | `string` | CKAN resource UUID. | `947d96a6-406b-47de-aa8b-da574b4e3fe9` |
77
- | `source_url` | `string` | Original source resource URL. | `https://data.gov.ma/data/ar/dataset/d274abbb-390e-4058-a270-7f8d0d296298` |
78
  | `license_id` | `string` | Source license identifier. | `odc-odbl` |
79
- | `retrieved_at` | `string` | UTC retrieval timestamp. | `2026-07-16T21:31:48Z` |
80
 
81
  ## Usage
82
 
@@ -88,29 +113,76 @@ df = ds["train"].to_pandas()
88
  print(df.head())
89
  ```
90
 
91
- ### Filter to one country
92
 
93
  ```python
94
- sample_country = df[df["country_iso3"] == "MAR"]
 
95
  ```
96
 
97
- ### Work with indicators
98
 
99
  ```python
100
- if "indicator_id" in df.columns:
101
- print(df["indicator_id"].value_counts().head())
102
- sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
103
  ```
104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  ## Citation
106
 
107
  ```bibtex
108
  @misc{electric_sheep_africa_africa_morocco_activite_detaillee_des_tribunaux_administratifs_76be0687_2026,
109
- title = {Activité détaillée des tribunaux administratifs | Africa (Morocco official open data)},
110
  author = {MJ},
111
  year = {2026},
112
  url = {https://data.gov.ma/data/dataset/activite-detaillee-des-tribunaux-administratifs-en-2023},
113
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
114
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-morocco-activite-detaillee-des-tribunaux-administratifs-76be0687}}
115
  }
116
  ```
@@ -119,20 +191,14 @@ if "indicator_id" in df.columns:
119
 
120
  Released under [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/).
121
 
122
- Original data (c) MJ. When using this dataset, please cite both the
123
- original source above and the Electric Sheep Africa repackaging.
124
-
125
- ## About Electric Sheep
126
 
127
- Electric Sheep Africa is part of the Electric Sheep mission: a unified,
128
- ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
129
- open sources, normalize the schemas, package as Parquet, and publish with
130
- consistent dataset cards so researchers and developers can use `load_dataset()`
131
- to start working in seconds.
132
 
133
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
134
 
135
  ---
136
 
137
- Provenance: ingested 2026-07-16 via the Electric Sheep pipeline. Source URL:
138
- https://data.gov.ma/data/ar/dataset/d274abbb-390e-4058-a270-7f8d0d296298/resource/947d96a6-406b-47de-aa8b-da574b4e3fe9/download/-2024.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
+ - "tribunaux-administratifs"
21
+ - "activite"
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 Detaillee Des Tribunaux Administratifs | Africa (Morocco Open Data)"
29
  ---
30
 
31
+ # Activite Detaillee Des Tribunaux Administratifs | Africa (Morocco Open Data)
32
 
33
+ **134 rows** - **1 Africa country/area** - **time not specified** - **source table** - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
34
 
35
  ![rows](https://img.shields.io/badge/rows-134-blue)
36
  ![countries](https://img.shields.io/badge/countries-1-green)
37
+ ![period](https://img.shields.io/badge/period-time%20not%20specified-orange)
38
  ![indicators](https://img.shields.io/badge/indicators-0-purple)
39
  ![license](https://img.shields.io/badge/license-odbl-lightgrey)
40
 
41
  ## TL;DR
42
 
43
+ This dataset contains **134 rows** from **Morocco Open Data**, covering **Activite Detaillee Des Tribunaux Administratifs**. 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 administratifs
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 | 134 |
64
+ | Countries/areas | 1 |
65
+ | First period | n/a |
66
+ | Last period | n/a |
67
+ | Indicators | 0 |
68
+ | Columns | 18 |
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` | 134 | 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. | `947d96a6-406b-47de-aa8b-da574b4e3fe9:dataset: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. | `ادارية مفصل` |
91
+ | `column` | `string` | Source column from the original resource. | `الاستعجالي` |
92
+ | `d_2023` | `double` | Source column from the original resource. | `116.0` |
93
+ | `d_2024` | `double` | Source column from the original resource. | `2026.0` |
94
+ | `d_2024_2` | `double` | Source column from the original resource. | `2142.0` |
95
+ | `d_2024_3` | `double` | Source column from the original resource. | `2101.0` |
96
+ | `d_2024_4` | `double` | Source column from the original resource. | `41.0` |
97
  | `source_provider` | `string` | Publishing organization. | `MJ` |
98
+ | `source_dataset` | `string` | Source dataset or package title. | `Activité détaillée des tribunaux administratifs` |
99
+ | `source_resource` | `string` | Source resource title, table name, or file name. | `النشاط المفصل للمحاكم الإدارية سنة 2024.xlsx` |
100
+ | `source_package_id` | `string` | Source package identifier. | `d274abbb-390e-4058-a270-7f8d0d296298` |
101
+ | `source_resource_id` | `string` | Source resource identifier. | `947d96a6-406b-47de-aa8b-da574b4e3fe9` |
102
+ | `source_url` | `string` | Original source URL or download URL. | `https://data.gov.ma/data/ar/dataset/d274abbb-390e-4058-a270-7f8d0d296...` |
103
  | `license_id` | `string` | Source license identifier. | `odc-odbl` |
104
+ | `retrieved_at` | `string` | UTC source retrieval timestamp from the Electric Sheep Africa pipeline. | `2026-07-16T21:31:48Z` |
105
 
106
  ## Usage
107
 
 
113
  print(df.head())
114
  ```
115
 
116
+ ### Inspect Columns
117
 
118
  ```python
119
+ print(df.info())
120
+ print(df.head())
121
  ```
122
 
123
+ ### Filter By Geography
124
 
125
  ```python
126
+ if "country_iso3" in df.columns:
127
+ sample = df[df["country_iso3"] == "MAR"]
 
128
  ```
129
 
130
+ ### Time-Series Pattern
131
+
132
+ ```python
133
+ if "value" in df.columns and "year" in df.columns:
134
+ trend = df.sort_values("year")
135
+ ```
136
+
137
+ ### Pivot For Analysis
138
+
139
+ ```python
140
+ if {"indicator_id", "year", "value"}.issubset(df.columns):
141
+ matrix = df.pivot_table(index="year", columns="indicator_id", values="value")
142
+ print(matrix.tail())
143
+ ```
144
+
145
+ ## Data Quality Notes
146
+
147
+ - No canonical year/date column was detected in the packaged table; use source metadata and domain context for temporal interpretation.
148
+ - Missing values are preserved rather than silently imputed.
149
+ - Column names are standardized for machine use; source meanings are preserved where known.
150
+ - Always confirm source methodology, units, and collection definitions before policy, production, or redistribution-sensitive use.
151
+
152
+ ## Source And Provenance
153
+
154
+ - **Source:** [Morocco Open Data](https://data.gov.ma/data/dataset/activite-detaillee-des-tribunaux-administratifs-en-2023)
155
+ - **Publisher:** MJ
156
+ - **Portal:** [https://data.gov.ma/data](https://data.gov.ma/data)
157
+ - **Resource:** [النشاط المفصل للمحاكم الإدارية سنة 2024.xlsx](https://data.gov.ma/data/ar/dataset/d274abbb-390e-4058-a270-7f8d0d296298/resource/947d96a6-406b-47de-aa8b-da574b4e3fe9/download/-2024.xlsx)
158
+ - **License:** [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/)
159
+ - **Retrieved/generated:** `2026-07-16T21:32:48Z`
160
+ - **Hugging Face repo:** [electricsheepafrica/africa-morocco-activite-detaillee-des-tribunaux-administratifs-76be0687](https://huggingface.co/datasets/electricsheepafrica/africa-morocco-activite-detaillee-des-tribunaux-administratifs-76be0687)
161
+
162
+ ## Transformations Applied
163
+
164
+ - Converted the source table to Parquet for efficient analytics and ML workflows.
165
+ - Added or preserved source provenance columns where available.
166
+ - Standardized README metadata, dataset loading configuration, schema documentation, and citation format.
167
+ - Preserved source-reported values without analytical imputation.
168
+
169
+ ## Suggested Analyses
170
+
171
+ - Profile the distribution of values
172
+ - Compare categories or geographies
173
+ - Join with complementary public datasets
174
+ - Check missingness before modeling
175
+ - Use `country_iso3` as the safest geography join key when present
176
+
177
  ## Citation
178
 
179
  ```bibtex
180
  @misc{electric_sheep_africa_africa_morocco_activite_detaillee_des_tribunaux_administratifs_76be0687_2026,
181
+ title = {Activite Detaillee Des Tribunaux Administratifs | Africa (Morocco Open Data)},
182
  author = {MJ},
183
  year = {2026},
184
  url = {https://data.gov.ma/data/dataset/activite-detaillee-des-tribunaux-administratifs-en-2023},
185
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
186
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-morocco-activite-detaillee-des-tribunaux-administratifs-76be0687}}
187
  }
188
  ```
 
191
 
192
  Released under [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/).
193
 
194
+ Original data is published by MJ. Electric Sheep Africa
195
+ engineering standardizes the data for discovery, loading, and analysis on
196
+ Hugging Face. Cite both the original source and this ML-ready dataset when used.
 
197
 
198
+ ## About Electric Sheep Africa
 
 
 
 
199
 
200
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
201
 
202
  ---
203
 
204
+ Provenance: README standardized 2026-08-11 by the Electric Sheep Africa README system. Source URL: https://data.gov.ma/data/dataset/activite-detaillee-des-tribunaux-administratifs-en-2023