Dataset Viewer
Auto-converted to Parquet Duplicate
The dataset viewer is not available for this split.
The number of columns (1729) exceeds the maximum supported number of columns (1000). This is a current limitation of the datasets viewer. You can reduce the number of columns if you want the viewer to work.
Error code:   TooManyColumnsError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Afrobarometer — Uganda

🌍 2,431 observations · 1 Africa countries · —–— · Repackaged by Electric Sheep Africa

rows countries license

TL;DR

This dataset contains 2,431 observations of Public Opinion Survey — Uganda data across 1 Africa countries.

About the source

Geographic coverage

1 Africa countries · top rows shown below, sorted by row count:

Country Rows First year Last year
Uganda 2,431

Schema

Column Type Description Example
COUNTRY string Uganda
RESPNO string UGA0032
URBRUR string Urban
BACKCHK string No
REGION string West
DISTRICT string Bushenyi
EA_SVC_A string Yes
EA_SVC_B string Yes
EA_SVC_C string No
EA_SVC_D string Yes
EA_FAC_A string No
EA_FAC_B string Yes
EA_FAC_C string Yes
EA_FAC_D string Yes
EA_FAC_E string Yes
EA_SEC_A string Yes
EA_SEC_B string No
EA_ROAD string Yes
NOCALL_1 string Not Applicable
NOCALL_2 string Not Applicable
NOCALL_3 string Not Applicable
NOCALL_4 string Not Applicable
NOCALL_5 string Not Applicable
NOCALL_6 string Not Applicable
NOCALL_7 string Not Applicable
PREVINT string Female
THISINT string Male
ADULT_CT string 1.0
CALLS string 1
DATEINTR string 2008-08-01
STRTIME string 15:13:00
Q1 string 49.0
Q2 string Yes
Q3 string Runyankole
Q3OTHER string ``
Q4A string Neither good nor bad
Q4B string Neither good nor bad
Q5 string Same
Q6A string Same
Q6B string Same
... (254 more columns)

Data quality & caveats

  • All Afrobarometer survey rounds for Uganda, one split per round.
  • Rounds included: R1 (1999-2001, 2,271 resp.), R2 (2002-2003, 2,400 resp.), R3 (2005-2006, 2,400 resp.), R4 (2008-2009, 2,431 resp.), R5 (2011-2013, 2,400 resp.), R6 (2014-2015, 2,400 resp.), R7 (2016-2018, 1,200 resp.), R8 (2019-2021, 1,200 resp.), R9 (2021-2023, 2,400 resp.).
  • Total: 19,102 respondents across 9 rounds.
  • Each round is a separate split (e.g. round_9) because question sets differ across rounds. Load one with load_dataset("electricsheepafrica/africa-afrobarometer-uganda", split="round_9").
  • Columns are Q-coded survey questions with value labels applied; weights included (withinwt, combinwt).
  • Questionnaire: codebook.csv maps every column to its question text, the rounds it appears in, and its value-code labels. Load it with load_dataset("electricsheepafrica/africa-afrobarometer-uganda", data_files="codebook.csv") or read codebook.json directly.

Usage

from datasets import load_dataset

ds = load_dataset("electricsheepafrica/africa-afrobarometer-uganda")
df = ds["train"].to_pandas()
print(df.head())

Filter to one country

kenya = df[df["COUNTRY"] == "KEN"]

Time-series for a single indicator

sample = df.sort_values("None")
sample.plot(x="None", y="None")

Citation

@misc{africa_afrobarometer_uganda_2026,
  title        = {Afrobarometer — Uganda},
  author       = {Afrobarometer},
  year         = {2026},
  url          = {https://www.afrobarometer.org/data/},
  publisher    = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-afrobarometer-uganda}}
}

License

Released under cc-by-4.0.

Original data © Afrobarometer. When using this dataset, please cite both the original source above and the Electric Sheep Africa repackaging.

About Electric Sheep

Electric Sheep Africa is part of the Electric Sheep mission: a unified, ML-ready data layer for Africa on HuggingFace. We pull data from authoritative open sources, normalize the schemas, package as Parquet, and publish with consistent dataset cards so researchers and developers can use load_dataset() to start working in seconds.

Browse the full collection: huggingface.co/electricsheepafrica


Provenance: ingested 2026-06-09 via the Electric Sheep pipeline. Source URL: https://www.afrobarometer.org/data/

Downloads last month
20

Collection including electricsheepafrica/africa-afrobarometer-uganda