Dataset Viewer
Auto-converted to Parquet Duplicate
district
stringlengths
8
15
reg_voters
int64
32k
900k
pdp
int64
93
6.86k
gf
int64
93
10.4k
ppp
int64
50
3.34k
fp
int64
33
1.31k
fdc
int64
940
281k
indep
int64
16
1.12k
nrm
int64
9.92k
176k
vald_votes
int64
21.4k
468k
invalid
int64
0
20.7k
total_votes
int64
22k
485k
leader
stringclasses
2 values
esa_source
stringclasses
1 value
esa_processed
stringdate
2026-04-27 00:00:00
2026-04-27 00:00:00
067 MANAFWA
152,973
460
403
258
179
37,415
216
64,819
103,939
5,124
109,063
NRM
HDX
2026-04-27
091 GOMBA
67,479
391
276
143
216
11,102
75
35,440
47,738
1,758
49,496
NRM
HDX
2026-04-27
063 KAABONG
50,596
316
302
266
161
1,629
240
34,703
38,575
5,576
44,151
NRM
HDX
2026-04-27
023 LUWEERO
201,664
1,286
847
503
211
53,084
271
71,382
127,957
5,807
133,764
NRM
HDX
2026-04-27
086 OTUKE
41,615
512
623
356
129
8,369
167
18,507
28,789
0
28,789
NRM
HDX
2026-04-27
082 BUIKWE
199,928
1,242
861
434
228
51,583
199
67,705
122,849
6,280
129,129
NRM
HDX
2026-04-27
078 BUDUDA
64,728
172
152
233
78
16,627
56
27,000
44,386
2,265
46,651
NRM
HDX
2026-04-27
016 KIBAALE
322,342
796
1,543
1,169
379
35,706
288
176,339
216,639
12,933
229,572
NRM
HDX
2026-04-27
031 MUBENDE
281,901
1,232
1,211
714
426
37,725
294
143,801
185,803
9,455
195,258
NRM
HDX
2026-04-27
046 KAMWENGE
173,159
352
668
250
132
15,153
106
103,756
120,556
3,021
123,577
NRM
HDX
2026-04-27
010 KABAROLE
233,385
647
782
560
277
35,603
187
122,134
160,474
7,687
168,161
NRM
HDX
2026-04-27
034 NTUNGAMO
238,337
400
656
571
216
50,691
154
112,076
164,919
6,540
171,459
NRM
HDX
2026-04-27
057 AMOLATAR
61,127
391
465
414
129
18,333
115
24,789
44,757
2,020
46,777
NRM
HDX
2026-04-27
065 KIRUHURA
155,081
129
266
103
93
10,786
37
121,286
132,775
1,946
134,721
NRM
HDX
2026-04-27
029 MOYO
54,521
602
929
420
181
12,240
113
20,973
35,664
2,810
38,474
NRM
HDX
2026-04-27
080 LYANTONDE
43,966
124
134
50
33
6,042
20
24,815
31,284
1,087
32,371
NRM
HDX
2026-04-27
006 HOIMA
228,917
578
907
448
236
35,249
363
111,133
149,229
8,194
157,423
NRM
HDX
2026-04-27
108 NGORA
62,952
529
652
513
167
21,337
160
19,444
43,014
2,635
45,649
FDC
HDX
2026-04-27
071 AMURU
73,221
1,027
3,377
639
347
17,275
289
10,673
33,863
2,663
36,526
FDC
HDX
2026-04-27
040 ADJUMANI
64,487
571
946
339
183
11,197
148
26,346
39,858
4,337
44,195
NRM
HDX
2026-04-27
036 RAKAI
223,901
1,678
1,101
511
260
51,338
290
90,593
146,132
6,715
152,847
NRM
HDX
2026-04-27
017 KIBOGA
67,012
269
253
108
44
10,253
60
33,039
44,139
2,163
46,302
NRM
HDX
2026-04-27
106 MITOOMA
98,981
255
350
356
104
22,055
67
47,641
70,889
1,889
72,778
NRM
HDX
2026-04-27
035 PALLISA
154,537
1,274
1,129
1,087
351
45,205
405
58,560
108,491
4,458
112,949
NRM
HDX
2026-04-27
111 AGAGO
85,759
859
2,217
663
330
19,204
224
35,501
59,258
3,016
62,274
NRM
HDX
2026-04-27
008 JINJA
233,848
494
605
284
159
61,692
196
66,063
131,065
5,861
136,926
NRM
HDX
2026-04-27
044 NAKASONGOLA
74,723
254
254
165
77
7,470
51
45,757
54,178
2,445
56,623
NRM
HDX
2026-04-27
068 MITYANA
144,847
1,041
834
448
163
35,695
314
64,035
102,793
4,750
107,543
NRM
HDX
2026-04-27
100 KALUNGU
76,578
585
673
212
97
22,218
128
28,727
52,752
2,124
54,876
NRM
HDX
2026-04-27
028 MOROTO
32,229
155
169
230
84
1,270
182
20,240
22,664
2,206
24,870
NRM
HDX
2026-04-27
020 KOTIDO
50,179
328
386
173
144
1,141
174
29,673
32,490
3,397
35,887
NRM
HDX
2026-04-27
090 BUVUMA
37,522
262
185
104
65
8,786
55
12,948
22,544
1,726
24,270
NRM
HDX
2026-04-27
095 NAMAYINGO
92,607
464
385
187
94
21,052
222
32,292
55,148
3,929
59,077
NRM
HDX
2026-04-27
026 MBALE
220,339
533
970
615
243
70,258
182
65,543
138,645
6,545
145,190
FDC
HDX
2026-04-27
009 KABALE
271,884
786
1,635
888
259
65,630
220
132,047
201,678
5,465
207,143
NRM
HDX
2026-04-27
084 KYEGEGWA
110,312
232
396
204
107
9,397
63
65,914
76,410
2,757
79,167
NRM
HDX
2026-04-27
050 PADER
70,121
1,210
3,720
690
437
20,223
355
17,336
44,610
1,752
46,362
FDC
HDX
2026-04-27
014 KAPCHORWA
48,430
129
119
122
137
11,529
76
24,761
36,958
1,747
38,705
NRM
HDX
2026-04-27
079 BUKEDEA
83,448
698
618
381
229
21,108
312
33,504
57,159
2,843
60,002
NRM
HDX
2026-04-27
025 MASINDI
134,494
583
770
533
217
21,561
173
55,106
79,155
6,409
85,564
NRM
HDX
2026-04-27
004 BUSHENYI
124,934
270
490
268
182
26,654
155
61,837
89,973
2,797
92,770
NRM
HDX
2026-04-27
018 KISORO
133,857
200
324
398
86
9,943
71
86,533
97,653
2,804
100,457
NRM
HDX
2026-04-27
039 TORORO
233,437
1,245
1,424
789
464
85,911
453
64,882
156,071
9,557
165,628
FDC
HDX
2026-04-27
102 KIBUKU
79,919
302
423
140
73
16,836
71
39,433
57,423
2,291
59,714
NRM
HDX
2026-04-27
007 IGANGA
222,276
838
733
328
163
50,506
460
82,281
137,466
7,444
144,910
NRM
HDX
2026-04-27
073 BULIISA
38,618
145
190
93
45
7,989
81
18,983
27,614
1,923
29,537
NRM
HDX
2026-04-27
097 SERERE
113,143
981
1,044
521
256
35,035
232
40,628
79,091
4,174
83,265
NRM
HDX
2026-04-27
089 BULAMBULI
61,920
172
168
166
54
13,350
100
29,796
43,899
1,667
45,566
NRM
HDX
2026-04-27
055 KANUNGU
129,072
426
10,401
496
100
27,382
73
53,673
92,622
3,010
95,632
NRM
HDX
2026-04-27
051 SIRONKO
115,357
295
281
194
146
41,053
124
40,596
82,805
3,538
86,343
FDC
HDX
2026-04-27
085 LAMWO
56,871
841
3,816
515
261
12,815
288
14,180
33,035
2,519
35,554
NRM
HDX
2026-04-27
047 KAYUNGA
162,880
1,017
700
896
233
40,578
263
56,274
100,341
5,250
105,591
NRM
HDX
2026-04-27
077 MARACHA
90,711
1,494
1,489
819
447
14,430
432
30,631
50,619
5,996
56,615
NRM
HDX
2026-04-27
062 ISINGIRO
201,963
332
607
570
568
33,666
112
102,258
138,222
3,366
141,588
NRM
HDX
2026-04-27
109 BUHWEJU
57,847
252
398
272
121
5,421
76
38,229
44,930
2,467
47,397
NRM
HDX
2026-04-27
110 NWOYA
46,836
667
4,984
573
186
6,838
275
9,922
23,829
1,359
25,188
NRM
HDX
2026-04-27
042 BUSIA
141,798
708
1,007
529
233
38,795
175
51,658
93,456
4,358
97,814
NRM
HDX
2026-04-27
059 BUKWO
36,052
158
93
110
62
4,572
30
22,169
27,234
1,109
28,343
NRM
HDX
2026-04-27
049 MAYUGE
196,170
859
574
395
221
40,594
215
71,846
115,951
6,639
122,590
NRM
HDX
2026-04-27
096 NTOROKO
32,006
93
123
69
45
4,359
16
16,661
21,402
629
22,031
NRM
HDX
2026-04-27
058 AMURIA
107,957
1,223
1,525
760
478
30,341
340
44,373
79,423
4,366
83,789
NRM
HDX
2026-04-27
076 OYAM
156,398
1,682
1,919
1,165
538
40,070
658
48,020
94,807
5,255
100,062
NRM
HDX
2026-04-27
033 NEBBI
173,502
1,471
4,119
959
649
29,145
512
72,505
110,083
9,573
119,656
NRM
HDX
2026-04-27
105 LWENGO
121,563
863
781
255
129
28,998
136
51,196
82,477
3,130
85,607
NRM
HDX
2026-04-27
060 BUTALEJA
98,706
622
647
472
190
27,147
495
38,812
68,706
3,382
72,088
NRM
HDX
2026-04-27
064 KALIRO
93,753
265
370
183
95
9,927
61
54,733
66,863
3,120
69,983
NRM
HDX
2026-04-27
094 LUUKA
96,706
322
266
228
83
15,760
68
42,511
59,922
3,702
63,624
NRM
HDX
2026-04-27
038 SOROTI
125,841
1,091
1,270
861
384
49,282
494
32,917
86,606
4,022
90,628
FDC
HDX
2026-04-27
030 MPIGI
110,907
1,240
613
467
163
31,178
188
41,618
75,666
3,210
78,876
NRM
HDX
2026-04-27
099 BUTAMBALA
44,171
312
231
188
44
14,294
54
17,019
32,234
1,128
33,362
NRM
HDX
2026-04-27
002 ARUA
336,384
3,737
5,215
3,341
1,313
68,108
1,121
114,868
199,049
20,736
219,785
NRM
HDX
2026-04-27
053 YUMBE
95,905
997
1,783
873
314
16,086
269
44,837
65,569
3,924
69,493
NRM
HDX
2026-04-27
022 LIRA
182,731
1,434
1,756
1,017
536
65,882
516
46,777
118,481
6,006
124,487
FDC
HDX
2026-04-27
003 BUNDIBUGYO
98,976
300
457
158
123
8,923
69
61,553
71,914
4,054
75,968
NRM
HDX
2026-04-27
024 MASAKA
139,736
1,484
1,153
247
140
46,549
107
41,998
91,831
2,916
94,747
FDC
HDX
2026-04-27
088 ALEBTONG
97,699
1,419
1,328
859
370
28,060
424
31,592
64,710
3,426
68,136
NRM
HDX
2026-04-27
101 SHEEMA
111,545
214
547
234
124
22,927
74
56,894
81,190
1,958
83,148
NRM
HDX
2026-04-27
075 NAMUTUMBA
103,296
526
334
220
121
17,370
114
47,498
67,719
3,308
71,027
NRM
HDX
2026-04-27
087 ZOMBO
101,136
929
1,433
666
311
11,286
216
46,404
61,836
3,917
65,753
NRM
HDX
2026-04-27
083 BUYENDE
117,618
441
462
389
95
10,579
90
62,890
75,684
5,073
80,757
NRM
HDX
2026-04-27
112 RUBIRIZI
63,006
163
367
316
69
9,974
50
34,845
45,858
1,735
47,593
NRM
HDX
2026-04-27
021 KUMI
102,223
1,148
1,043
765
363
27,897
486
36,653
68,896
4,118
73,014
NRM
HDX
2026-04-27
061 IBANDA
123,221
207
346
265
117
14,952
488
74,616
91,072
2,922
93,994
NRM
HDX
2026-04-27
072 BUDAKA
86,834
485
444
394
192
21,419
359
36,297
59,930
2,859
62,789
NRM
HDX
2026-04-27
107 NAPAK
43,605
130
223
138
90
940
138
29,148
31,108
3,257
34,365
NRM
HDX
2026-04-27
015 KASESE
335,162
2,099
1,290
795
443
132,762
342
97,367
235,427
9,293
244,720
FDC
HDX
2026-04-27
093 KYANKWANZI
91,086
265
336
216
97
11,494
63
47,897
60,503
2,847
63,350
NRM
HDX
2026-04-27
052 WAKISO
900,035
6,857
4,682
937
772
280,793
883
172,129
468,251
16,338
484,589
FDC
HDX
2026-04-27
103 KOLE
102,200
980
959
535
280
27,189
343
37,441
68,082
2,788
70,870
NRM
HDX
2026-04-27

Election & Voter Data | Uganda

Publisher: Code for Africa · Source: OpenAfrica · License: cc-by · Updated: 2023-11-30


Abstract

Data extracted from Uganda Electoral Commission

Each row in this dataset represents subnational administrative unit observations. Data was last updated on OpenAfrica on 2023-11-30. Geographic scope: Africa (multiple countries).

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


Dataset Characteristics

Domain Humanitarian and development data
Unit of observation Subnational administrative unit observations
Rows (total) 112
Columns 15 (11 numeric, 4 categorical, 0 datetime)
Train split 89 rows
Test split 22 rows
Geographic scope Africa (multiple countries)
Publisher Code for Africa
OpenAfrica last updated 2023-11-30

Variables

Geographicdistrict (001 APAC , 002 ARUA , 083 BUYENDE).

Outcome / Measurementtotal_votes (range 20008.0–522139.0).

Identifier / Metadatainvalid (range 0.0–20736.0), esa_source (HDX), esa_processed (2026-04-27).

Otherreg_voters (range 29729.0–1014294.0), pdp (range 37.0–6857.0), gf (range 33.0–10487.0), ppp (range 16.0–3341.0), fp (range 13.0–1313.0) and 5 others.


Quick Start

from datasets import load_dataset

ds    = load_dataset("electricsheepafrica/africa-election-voter-data")
train = ds["train"].to_pandas()
test  = ds["test"].to_pandas()

print(train.shape)
train.head()

Schema

Column Type Null % Range / Sample Values
district object 0.0% 001 APAC , 002 ARUA , 083 BUYENDE
reg_voters int64 0.0% 29729.0 – 1014294.0 (mean 136403.5536)
pdp int64 0.0% 37.0 – 6857.0 (mean 794.6875)
gf int64 0.0% 33.0 – 10487.0 (mean 1218.9196)
ppp int64 0.0% 16.0 – 3341.0 (mean 471.4107)
fp int64 0.0% 13.0 – 1313.0 (mean 228.5714)
fdc int64 0.0% 521.0 – 334919.0 (mean 31327.5625)
indep int64 0.0% 16.0 – 1121.0 (mean 218.7321)
nrm int64 0.0% 9922.0 – 176339.0 (mean 53320.2857)
vald_votes int64 0.0% 18968.0 – 508027.0 (mean 87962.6071)
invalid int64 0.0% 0.0 – 20736.0 (mean 4261.7768)
total_votes int64 0.0% 20008.0 – 522139.0 (mean 92224.3839)
leader object 0.0% NRM, FDC
esa_source object 0.0% HDX
esa_processed object 0.0% 2026-04-27

Numeric Summary

Column Min Max Mean Median
reg_voters 29729.0 1014294.0 136403.5536 102211.5
pdp 37.0 6857.0 794.6875 564.0
gf 33.0 10487.0 1218.9196 654.0
ppp 16.0 3341.0 471.4107 386.0
fp 13.0 1313.0 228.5714 181.5
fdc 521.0 334919.0 31327.5625 21080.0
indep 16.0 1121.0 218.7321 176.0
nrm 9922.0 176339.0 53320.2857 44057.5
vald_votes 18968.0 508027.0 87962.6071 68801.0
invalid 0.0 20736.0 4261.7768 3374.0
total_votes 20008.0 522139.0 92224.3839 72433.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. 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 Code for Africa and has not been independently validated by ESA.
  • Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
  • Refer to the original HDX dataset page for the publisher's own methodology notes and caveats.

Citation

@dataset{openafrica_africa_election_voter_data,
  title     = {Election & Voter Data | Uganda},
  author    = {Code for Africa},
  year      = {2023},
  url       = {https://open.africa/dataset/election-voter-data},
  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
8