Kossisoroyce commited on
Commit
b0160dd
·
verified ·
1 Parent(s): 956c579

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +145 -32
README.md CHANGED
@@ -1,36 +1,149 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
- features:
4
- - name: freedom_scores_2013_2022
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: unnamed_5
15
- dtype: string
16
- - name: esa_source
17
- dtype: string
18
- - name: esa_processed
19
- dtype: string
20
  splits:
21
- - name: train
22
- num_bytes: 6930
23
- num_examples: 90
24
- - name: test
25
- num_bytes: 1772
26
- num_examples: 23
27
- download_size: 8568
28
- dataset_size: 8702
29
- configs:
30
- - config_name: default
31
- data_files:
32
- - split: train
33
- path: data/train-*
34
- - split: test
35
- path: data/test-*
36
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - n<1K
13
+ source_datasets:
14
+ - original
15
+ task_categories:
16
+ - tabular-classification
17
+ - tabular-regression
18
+ task_ids: []
19
+ tags:
20
+ - africa
21
+ - humanitarian
22
+ - hdx
23
+ - electric-sheep-africa
24
+ - democratic-culture
25
+ - benin
26
+ - botswana
27
+ - cape-verde
28
+ - ethiopia
29
+ - kenya
30
+ pretty_name: "Global Freedom; Freedom in the world 2022"
31
  dataset_info:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  splits:
33
+ - name: train
34
+ num_examples: 90
35
+ - name: test
36
+ num_examples: 22
 
 
 
 
 
 
 
 
 
 
 
37
  ---
38
+
39
+ # Global Freedom; Freedom in the world 2022
40
+
41
+ **Publisher:** Freedom House · **Source:** [OpenAfrica](https://open.africa/dataset/global-freedom-freedom-in-the-world-2022) · **License:** `cc-by` · **Updated:** 2023-01-24
42
+
43
+ ---
44
+
45
+ ## Abstract
46
+
47
+ Individual freedoms—ranging from the right to vote to freedom of expression and equality before the law—can be affected by state or nonstate actors. Scores are based on a scale of 0 (Not Free) to 100 (Free)
48
+
49
+ Each row in this dataset represents tabular records. Data was last updated on OpenAfrica on 2023-01-24. Geographic scope: **BENIN, BOTSWANA, CAPE-VERDE, ETHIOPIA, KENYA, NIGERIA, SENEGAL, SOUTH-AFRICA, and 4 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)** | 113 |
62
+ | **Columns** | 8 (4 numeric, 4 categorical, 0 datetime) |
63
+ | **Train split** | 90 rows |
64
+ | **Test split** | 22 rows |
65
+ | **Geographic scope** | BENIN, BOTSWANA, CAPE-VERDE, ETHIOPIA, KENYA, NIGERIA, SENEGAL, SOUTH-AFRICA, and 4 others |
66
+ | **Publisher** | Freedom House |
67
+ | **OpenAfrica last updated** | 2023-01-24 |
68
+
69
+ ---
70
+
71
+ ## Variables
72
+
73
+ **Outcome / Measurement** — `freedom_scores_2013_2022` (Benin, Botswana, Cabo Verde).
74
+
75
+ **Identifier / Metadata** — `unnamed_1` (range 2013.0–2022.0), `unnamed_2` (range 0.0–38.0), `unnamed_3` (range 4.0–54.0), `unnamed_4` (range 6.0–92.0), `unnamed_5` (Partly Free, Free, Not Free) and 2 others.
76
+
77
+ ---
78
+
79
+ ## Quick Start
80
+
81
+ ```python
82
+ from datasets import load_dataset
83
+
84
+ ds = load_dataset("electricsheepafrica/africa-global-freedom-freedom-in-the-world-2022")
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
+ | `freedom_scores_2013_2022` | object | 0.9% | Benin, Botswana, Cabo Verde |
99
+ | `unnamed_1` | float64 | 2.7% | 2013.0 – 2022.0 (mean 2017.5) |
100
+ | `unnamed_2` | float64 | 2.7% | 0.0 – 38.0 (mean 23.1818) |
101
+ | `unnamed_3` | float64 | 2.7% | 4.0 – 54.0 (mean 33.5818) |
102
+ | `unnamed_4` | float64 | 2.7% | 6.0 – 92.0 (mean 56.7636) |
103
+ | `unnamed_5` | object | 1.8% | Partly Free, Free, Not Free |
104
+ | `esa_source` | object | 0.0% | HDX |
105
+ | `esa_processed` | object | 0.0% | 2026-04-28 |
106
+
107
+ ---
108
+
109
+ ## Numeric Summary
110
+
111
+ | Column | Min | Max | Mean | Median |
112
+ |---|---|---|---|---|
113
+ | `unnamed_1` | 2013.0 | 2022.0 | 2017.5 | 2017.5 |
114
+ | `unnamed_2` | 0.0 | 38.0 | 23.1818 | 25.0 |
115
+ | `unnamed_3` | 4.0 | 54.0 | 33.5818 | 34.0 |
116
+ | `unnamed_4` | 6.0 | 92.0 | 56.7636 | 60.0 |
117
+
118
+ ---
119
+
120
+ ## Curation
121
+
122
+ 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.
123
+
124
+ ---
125
+
126
+ ## Limitations
127
+
128
+ - Data originates from Freedom House and has not been independently validated by ESA.
129
+ - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
130
+ - This dataset spans 12 countries; geographic and methodological inconsistencies across national boundaries may affect cross-country comparability.
131
+ - Refer to the [original HDX dataset page](https://open.africa/dataset/global-freedom-freedom-in-the-world-2022) for the publisher's own methodology notes and caveats.
132
+
133
+ ---
134
+
135
+ ## Citation
136
+
137
+ ```bibtex
138
+ @dataset{openafrica_africa_global_freedom_freedom_in_the_world_2022,
139
+ title = {Global Freedom; Freedom in the world 2022},
140
+ author = {Freedom House},
141
+ year = {2023},
142
+ url = {https://open.africa/dataset/global-freedom-freedom-in-the-world-2022},
143
+ note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
144
+ }
145
+ ```
146
+
147
+ ---
148
+
149
+ *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*