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 — Tanzania

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

rows countries license

TL;DR

This dataset contains 2,400 observations of Public Opinion Survey — Tanzania 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
Tanzania 2,400

Schema

Column Type Description Example
COUNTRY string Tanzania
COUNTRY_ALPHA string Tanzania
COUNTRY.BY.REGION.NO string Tanzania
COUNTRY.BY.REGION string East Africa
RESPNO string TAN0001
URBRUR string Urban
REGION string Ruvuma
EA_SVC_A string No
EA_SVC_B string Yes
EA_SVC_C string No
EA_SVC_D string Yes
EA_FAC_A string Yes
EA_FAC_B string Yes
EA_FAC_C string Yes
EA_FAC_D string Yes
EA_FAC_E string Yes
EA_SEC_A string No
EA_SEC_B string No
EA_SEC_C string No
EA_SEC_D string No
EA_SEC_E string No
EA_ROAD string Yes
NOCALL_1 string Not Applicable
NOCALL_1OTHER string ``
NOCALL_2 string Not Applicable
NOCALL_2OTHER string ``
NOCALL_3 string Not Applicable
NOCALL_3OTHER string ``
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.0
DATEINTR string 2012-05-30
STRTIME string 16:06:57
Q1 string 23.0
Q2 string Kindendeule
... (308 more columns)

Data quality & caveats

  • All Afrobarometer survey rounds for Tanzania, one split per round.
  • Rounds included: R1 (1999-2001, 2,198 resp.), R2 (2002-2003, 1,223 resp.), R3 (2005-2006, 1,304 resp.), R4 (2008-2009, 1,208 resp.), R5 (2011-2013, 2,400 resp.), R6 (2014-2015, 2,386 resp.), R7 (2016-2018, 2,400 resp.), R8 (2019-2021, 2,398 resp.), R9 (2021-2023, 2,400 resp.).
  • Total: 17,917 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-tanzania", 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-tanzania", data_files="codebook.csv") or read codebook.json directly.

Usage

from datasets import load_dataset

ds = load_dataset("electricsheepafrica/africa-afrobarometer-tanzania")
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_tanzania_2026,
  title        = {Afrobarometer — Tanzania},
  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-tanzania}}
}

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
8

Collection including electricsheepafrica/africa-afrobarometer-tanzania