Olaroti commited on
Commit
e3c8d28
·
verified ·
1 Parent(s): cd1e54b

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +139 -73
README.md CHANGED
@@ -5,88 +5,113 @@ 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é des tribunaux de première instance et leurs centres de juges résidents 2022 | Africa (Morocco official open data)"
 
 
 
 
 
 
 
 
 
 
19
  ---
20
 
21
- # Activité des tribunaux de première instance et leurs centres de juges résidents 2022 | Africa (Morocco official open data)
22
 
23
- 153 rows - 1 Africa country - not-applicable - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
24
 
25
  ![rows](https://img.shields.io/badge/rows-153-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é des tribunaux de première instance et leurs centres de juges résidents 2022](https://data.gov.ma/data/dataset/activite-des-tribunaux-de-premiere-instance-et-leurs-centres-de-juges-residents-2022)
40
- - **Publisher:** MJ
41
- - **Resource:** [النشاط العام للمحاكم الابتدائية والمراكز التابعة لها سنة 2022.xlsx](https://data.gov.ma/data/fr/dataset/2c4adfbc-9f55-4faa-a9c3-0277113caa15/resource/abee5b8c-f0c9-4213-a434-1a2f2b7ea8fc/download/-2022.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` | 153 | 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. | `abee5b8c-f0c9-4213-a434-1a2f2b7ea8fc:2022: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. | `الابتدائيات+ المراكز 2022` |
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` | CKAN package UUID. | `2c4adfbc-9f55-4faa-a9c3-0277113caa15` |
86
- | `source_resource_id` | `string` | CKAN resource UUID. | `abee5b8c-f0c9-4213-a434-1a2f2b7ea8fc` |
87
- | `source_url` | `string` | Original source resource URL. | `https://data.gov.ma/data/fr/dataset/2c4adfbc-9f55-4faa-a9c3-0277113caa15` |
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
- ### Filter to one country
102
 
103
  ```python
104
- sample_country = df[df["country_iso3"] == "MAR"]
 
105
  ```
106
 
107
- ### Work with indicators
108
 
109
  ```python
110
- if "indicator_id" in df.columns:
111
- print(df["indicator_id"].value_counts().head())
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 = {Activité des tribunaux de première instance et leurs centres de juges résidents 2022 | Africa (Morocco official open data)},
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 = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
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 (c) MJ. When using this dataset, please cite both the
133
- original source above and the Electric Sheep Africa repackaging.
134
-
135
- ## About Electric Sheep
136
 
137
- Electric Sheep Africa is part of the Electric Sheep mission: a unified,
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
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
144
 
145
  ---
146
 
147
- Provenance: ingested 2026-07-16 via the Electric Sheep pipeline. Source URL:
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
  ![rows](https://img.shields.io/badge/rows-153-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 **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