Dataset Viewer
Auto-converted to Parquet Duplicate
free_and_fair_election_1789_2021
stringclasses
12 values
unnamed_1
float64
1.88k
2.02k
unnamed_2
float64
0
1
esa_source
stringclasses
1 value
esa_processed
stringdate
2026-04-28 00:00:00
2026-04-28 00:00:00
Benin
2,019
0
HDX
2026-04-28
Sudan
1,949
0
HDX
2026-04-28
Nigeria
2,005
0
HDX
2026-04-28
Kenya
1,992
1
HDX
2026-04-28
Kenya
1,929
1
HDX
2026-04-28
Nigeria
1,999
1
HDX
2026-04-28
South Africa
2,005
1
HDX
2026-04-28
Kenya
2,004
1
HDX
2026-04-28
Zambia
1,972
1
HDX
2026-04-28
Botswana
1,988
1
HDX
2026-04-28
Tanzania
1,958
1
HDX
2026-04-28
Kenya
1,933
1
HDX
2026-04-28
Cape Verde
2,013
1
HDX
2026-04-28
Botswana
1,967
1
HDX
2026-04-28
Kenya
1,958
1
HDX
2026-04-28
Cape Verde
1,986
1
HDX
2026-04-28
Benin
2,003
1
HDX
2026-04-28
Botswana
1,968
1
HDX
2026-04-28
Kenya
1,962
1
HDX
2026-04-28
Zambia
1,927
0
HDX
2026-04-28
Kenya
1,984
1
HDX
2026-04-28
Tanzania
1,990
1
HDX
2026-04-28
Cape Verde
1,990
1
HDX
2026-04-28
Senegal
1,995
1
HDX
2026-04-28
Cape Verde
2,020
1
HDX
2026-04-28
Cape Verde
2,019
1
HDX
2026-04-28
Benin
1,987
0
HDX
2026-04-28
Senegal
1,958
1
HDX
2026-04-28
Zambia
1,965
1
HDX
2026-04-28
South Africa
1,961
0
HDX
2026-04-28
Kenya
1,990
0
HDX
2026-04-28
Cape Verde
1,991
1
HDX
2026-04-28
Sudan
1,986
1
HDX
2026-04-28
South Africa
1,958
0
HDX
2026-04-28
Kenya
2,017
0
HDX
2026-04-28
South Africa
1,911
0
HDX
2026-04-28
Benin
1,955
0
HDX
2026-04-28
Sudan
2,005
0
HDX
2026-04-28
Nigeria
2,016
1
HDX
2026-04-28
Botswana
1,971
1
HDX
2026-04-28
Nigeria
2,011
1
HDX
2026-04-28
Sudan
2,006
0
HDX
2026-04-28
Cape Verde
2,000
1
HDX
2026-04-28
Senegal
1,954
1
HDX
2026-04-28
Kenya
1,989
0
HDX
2026-04-28
Cape Verde
1,987
1
HDX
2026-04-28
Zambia
1,948
0
HDX
2026-04-28
Senegal
1,988
1
HDX
2026-04-28
Zambia
1,973
0
HDX
2026-04-28
Senegal
1,977
1
HDX
2026-04-28
Benin
2,000
1
HDX
2026-04-28
Zambia
2,014
1
HDX
2026-04-28
Botswana
2,006
1
HDX
2026-04-28
South Africa
1,953
0
HDX
2026-04-28
Benin
2,015
1
HDX
2026-04-28
Kenya
2,021
0
HDX
2026-04-28
Zambia
1,939
0
HDX
2026-04-28
Zambia
2,003
1
HDX
2026-04-28
Sudan
1,976
0
HDX
2026-04-28
Zambia
2,005
1
HDX
2026-04-28
Benin
1,983
0
HDX
2026-04-28
South Africa
1,935
0
HDX
2026-04-28
Kenya
1,945
1
HDX
2026-04-28
Zambia
1,978
0
HDX
2026-04-28
Nigeria
2,010
0
HDX
2026-04-28
Nigeria
1,962
0
HDX
2026-04-28
Botswana
2,008
1
HDX
2026-04-28
Botswana
1,980
1
HDX
2026-04-28
Benin
2,010
1
HDX
2026-04-28
South Africa
1,919
0
HDX
2026-04-28
Sudan
2,000
0
HDX
2026-04-28
Zambia
1,957
0
HDX
2026-04-28
Tanzania
1,969
1
HDX
2026-04-28
Ethiopia
1,998
0
HDX
2026-04-28
South Africa
2,008
1
HDX
2026-04-28
Nigeria
1,964
0
HDX
2026-04-28
Kenya
2,000
1
HDX
2026-04-28
Nigeria
1,981
0
HDX
2026-04-28
Cape Verde
1,994
1
HDX
2026-04-28
Tanzania
1,982
1
HDX
2026-04-28
Tanzania
1,999
1
HDX
2026-04-28
Benin
1,969
1
HDX
2026-04-28
Zambia
1,981
0
HDX
2026-04-28
Cape Verde
1,995
1
HDX
2026-04-28
Nigeria
1,961
0
HDX
2026-04-28
Kenya
1,964
1
HDX
2026-04-28
South Africa
1,994
1
HDX
2026-04-28
Botswana
1,981
1
HDX
2026-04-28
Benin
2,020
0
HDX
2026-04-28
South Africa
1,917
0
HDX
2026-04-28
South Africa
1,944
0
HDX
2026-04-28
Benin
1,988
0
HDX
2026-04-28
Nigeria
1,982
0
HDX
2026-04-28
South Africa
1,939
0
HDX
2026-04-28
Tanzania
1,981
1
HDX
2026-04-28
Kenya
2,009
0
HDX
2026-04-28
South Africa
1,952
0
HDX
2026-04-28
Ethiopia
1,970
0
HDX
2026-04-28
Sudan
1,997
0
HDX
2026-04-28
Zambia
2,000
1
HDX
2026-04-28
End of preview. Expand in Data Studio

Free and Fair Election (1789 – 2021)

Publisher: V-Dem Institute · Source: OpenAfrica · License: cc-by · Updated: 2023-01-26


Abstract

"The variable denotes the best estimate of whether national elections were free and fair or not, based on the criteria of the classification by Lührmann et al. (2018) and the assessment by V-Dem’s experts. 1 if elections were free and fair and 0 if not."

Each row in this dataset represents tabular records. Data was last updated on OpenAfrica on 2023-01-26. Geographic scope: BENIN, BOTSWANA, CAPE-VERDE, ETHIOPIA, KENYA, NIGERIA, SENEGAL, SOUTH-AFRICA, and 4 others.

Curated into ML-ready Parquet format by Electric Sheep Africa.


Dataset Characteristics

Domain Humanitarian and development data
Unit of observation Tabular records
Rows (total) 767
Columns 5 (2 numeric, 3 categorical, 0 datetime)
Train split 613 rows
Test split 153 rows
Geographic scope BENIN, BOTSWANA, CAPE-VERDE, ETHIOPIA, KENYA, NIGERIA, SENEGAL, SOUTH-AFRICA, and 4 others
Publisher V-Dem Institute
OpenAfrica last updated 2023-01-26

Variables

Identifier / Metadataunnamed_1 (range 1883.0–2021.0), unnamed_2 (range 0.0–1.0), esa_source (HDX), esa_processed (2026-04-28).

Otherfree_and_fair_election_1789_2021 (South Africa, Kenya, Zambia).


Quick Start

from datasets import load_dataset

ds    = load_dataset("electricsheepafrica/africa-free-and-fair-election-1789-2021")
train = ds["train"].to_pandas()
test  = ds["test"].to_pandas()

print(train.shape)
train.head()

Schema

Column Type Null % Range / Sample Values
free_and_fair_election_1789_2021 object 0.1% South Africa, Kenya, Zambia
unnamed_1 float64 0.4% 1883.0 – 2021.0 (mean 1981.2304)
unnamed_2 float64 0.4% 0.0 – 1.0 (mean 0.6008)
esa_source object 0.0% HDX
esa_processed object 0.0% 2026-04-28

Numeric Summary

Column Min Max Mean Median
unnamed_1 1883.0 2021.0 1981.2304 1985.0
unnamed_2 0.0 1.0 0.6008 1.0

Curation

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. 2 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.


Limitations

  • Data originates from V-Dem Institute and has not been independently validated by ESA.
  • Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
  • This dataset spans 12 countries; geographic and methodological inconsistencies across national boundaries may affect cross-country comparability.
  • Refer to the original HDX dataset page for the publisher's own methodology notes and caveats.

Citation

@dataset{openafrica_africa_free_and_fair_election_1789_2021,
  title     = {Free and Fair Election (1789 – 2021)},
  author    = {V-Dem Institute},
  year      = {2023},
  url       = {https://open.africa/dataset/free-and-fair-election-1789-2021},
  note      = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
}

Electric Sheep Africa — Africa's ML dataset infrastructure. Lagos, Nigeria.

Downloads last month
41