Kossisoroyce commited on
Commit
f400018
·
verified ·
1 Parent(s): 5fcd024

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +144 -30
README.md CHANGED
@@ -1,34 +1,148 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
- features:
4
- - name: judicial_constraint_1900_2021
5
- dtype: string
6
- - name: unnamed_1
7
- dtype: float64
8
- - name: unnamed_2
9
- dtype: float64
10
- - name: unnamed_3
11
- dtype: float64
12
- - name: unnamed_4
13
- dtype: float64
14
- - name: esa_source
15
- dtype: string
16
- - name: esa_processed
17
- dtype: string
18
  splits:
19
- - name: train
20
- num_bytes: 76625
21
- num_examples: 1180
22
- - name: test
23
- num_bytes: 19040
24
- num_examples: 296
25
- download_size: 22448
26
- dataset_size: 95665
27
- configs:
28
- - config_name: default
29
- data_files:
30
- - split: train
31
- path: data/train-*
32
- - split: test
33
- path: data/test-*
34
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language_creators:
5
+ - found
6
+ language:
7
+ - en
8
+ license: cc-by-4.0
9
+ multilinguality:
10
+ - monolingual
11
+ size_categories:
12
+ - 1K<n<10K
13
+ source_datasets:
14
+ - original
15
+ task_categories:
16
+ - tabular-regression
17
+ task_ids: []
18
+ tags:
19
+ - africa
20
+ - humanitarian
21
+ - hdx
22
+ - electric-sheep-africa
23
+ - independent-judiciary
24
+ - rule-of-law
25
+ - benin
26
+ - botswana
27
+ - cape-verde
28
+ - ethiopia
29
+ - kenya
30
+ pretty_name: "Judicial Constraints on the Executive, 2021 for select African Countries"
31
  dataset_info:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  splits:
33
+ - name: train
34
+ num_examples: 1180
35
+ - name: test
36
+ num_examples: 295
 
 
 
 
 
 
 
 
 
 
 
37
  ---
38
+
39
+ # Judicial Constraints on the Executive, 2021 for select African Countries
40
+
41
+ **Publisher:** The Charter Project · **Source:** [OpenAfrica](https://open.africa/dataset/judicial-constraints-on-the-executive-2021-for-select-african-countries) · **License:** `cc-by` · **Updated:** 2023-04-11
42
+
43
+ ---
44
+
45
+ ## Abstract
46
+
47
+ Based on the expert assessments and index, it combines information on the extent to which the executive respects the constitution and complies with the rulings of independent courts. It ranges from 0 to 1 (most constrained).
48
+
49
+ Each row in this dataset represents tabular records. Data was last updated on OpenAfrica on 2023-04-11. Geographic scope: **BENIN, BOTSWANA, CAPE-VERDE, ETHIOPIA, KENYA, NIGERIA, SENEGAL, SOUTH-AFRICA, and 3 others**.
50
+
51
+ *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
52
+
53
+ ---
54
+
55
+ ## Dataset Characteristics
56
+
57
+ | | |
58
+ |---|---|
59
+ | **Domain** | Humanitarian and development data |
60
+ | **Unit of observation** | Tabular records |
61
+ | **Rows (total)** | 1,476 |
62
+ | **Columns** | 7 (4 numeric, 3 categorical, 0 datetime) |
63
+ | **Train split** | 1,180 rows |
64
+ | **Test split** | 295 rows |
65
+ | **Geographic scope** | BENIN, BOTSWANA, CAPE-VERDE, ETHIOPIA, KENYA, NIGERIA, SENEGAL, SOUTH-AFRICA, and 3 others |
66
+ | **Publisher** | The Charter Project |
67
+ | **OpenAfrica last updated** | 2023-04-11 |
68
+
69
+ ---
70
+
71
+ ## Variables
72
+
73
+ **Identifier / Metadata** — `unnamed_1` (range 1789.0–2021.0), `unnamed_2` (range 0.021–0.937), `unnamed_3` (range 0.006–0.866), `unnamed_4` (range 0.055–0.971), `esa_source` (HDX) and 1 others.
74
+
75
+ **Other** — `judicial_constraint_1900_2021` (Ethiopia, Sudan, Benin).
76
+
77
+ ---
78
+
79
+ ## Quick Start
80
+
81
+ ```python
82
+ from datasets import load_dataset
83
+
84
+ ds = load_dataset("electricsheepafrica/africa-judicial-constraints-on-the-executive-2021-for-select-african-countries")
85
+ train = ds["train"].to_pandas()
86
+ test = ds["test"].to_pandas()
87
+
88
+ print(train.shape)
89
+ train.head()
90
+ ```
91
+
92
+ ---
93
+
94
+ ## Schema
95
+
96
+ | Column | Type | Null % | Range / Sample Values |
97
+ |---|---|---|---|
98
+ | `judicial_constraint_1900_2021` | object | 0.1% | Ethiopia, Sudan, Benin |
99
+ | `unnamed_1` | float64 | 0.1% | 1789.0 – 2021.0 (mean 1948.6377) |
100
+ | `unnamed_2` | float64 | 0.1% | 0.021 – 0.937 (mean 0.4363) |
101
+ | `unnamed_3` | float64 | 0.1% | 0.006 – 0.866 (mean 0.3228) |
102
+ | `unnamed_4` | float64 | 0.1% | 0.055 – 0.971 (mean 0.5591) |
103
+ | `esa_source` | object | 0.0% | HDX |
104
+ | `esa_processed` | object | 0.0% | 2026-04-28 |
105
+
106
+ ---
107
+
108
+ ## Numeric Summary
109
+
110
+ | Column | Min | Max | Mean | Median |
111
+ |---|---|---|---|---|
112
+ | `unnamed_1` | 1789.0 | 2021.0 | 1948.6377 | 1954.5 |
113
+ | `unnamed_2` | 0.021 | 0.937 | 0.4363 | 0.365 |
114
+ | `unnamed_3` | 0.006 | 0.866 | 0.3228 | 0.232 |
115
+ | `unnamed_4` | 0.055 | 0.971 | 0.5591 | 0.531 |
116
+
117
+ ---
118
+
119
+ ## Curation
120
+
121
+ Raw data was downloaded from OpenAfrica 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`. 4 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.
122
+
123
+ ---
124
+
125
+ ## Limitations
126
+
127
+ - Data originates from The Charter Project and has not been independently validated by ESA.
128
+ - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
129
+ - This dataset spans 11 countries; geographic and methodological inconsistencies across national boundaries may affect cross-country comparability.
130
+ - Refer to the [original HDX dataset page](https://open.africa/dataset/judicial-constraints-on-the-executive-2021-for-select-african-countries) for the publisher's own methodology notes and caveats.
131
+
132
+ ---
133
+
134
+ ## Citation
135
+
136
+ ```bibtex
137
+ @dataset{openafrica_africa_judicial_constraints_on_the_executive_2021_for_select_african_countries,
138
+ title = {Judicial Constraints on the Executive, 2021 for select African Countries},
139
+ author = {The Charter Project},
140
+ year = {2023},
141
+ url = {https://open.africa/dataset/judicial-constraints-on-the-executive-2021-for-select-african-countries},
142
+ note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
143
+ }
144
+ ```
145
+
146
+ ---
147
+
148
+ *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*