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

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

rows countries license

TL;DR

This dataset contains 1,200 observations of Public Opinion Survey — Zambia 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
Zambia 1,200

Schema

Column Type Description Example
country string Zambia
respno string ZAM0204
backchk string No
urbrur string Rural
region string Southern
district string Kazungula
hholdse1 string Not Applicable
hholdse2 string Not Applicable
hholdse3 string Not Applicable
hholdse4 string Not Applicable
hholdse5 string Not Applicable
hholdse6 string Not Applicable
hholdse7 string Not Applicable
prevint string Male
currint string Female
calls string 1
dateintr string 2005-08-11
strtime string 15:02:00
q1 string 38.0
q2 string Yes
q3 string Tonga
q4a string Fairly bad
q4b string Fairly good
q5 string Better
q6a string Same
q6b string Same
q7a string Worse
q7b string Better
q8a string Several times
q8b string Just once or twice
q8c string Just once or twice
q8d string Just once or twice
q8e string Many times
q8f string Just once or twice
q9a string Never
q9b string Never
q9c string Never
q10 string Agree very strongly with B
q11 string Agree with B
q12 string Agree with A
... (262 more columns)

Data quality & caveats

  • All Afrobarometer survey rounds for Zambia, one split per round.
  • Rounds included: R1 (1999-2001, 1,198 resp.), R2 (2002-2003, 1,198 resp.), R3 (2005-2006, 1,200 resp.), R4 (2008-2009, 1,200 resp.), R5 (2011-2013, 1,200 resp.), R6 (2014-2015, 1,199 resp.), R7 (2016-2018, 1,200 resp.), R8 (2019-2021, 1,200 resp.), R9 (2021-2023, 1,200 resp.).
  • Total: 10,795 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-zambia", 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-zambia", data_files="codebook.csv") or read codebook.json directly.

Usage

from datasets import load_dataset

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

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
12

Collection including electricsheepafrica/africa-afrobarometer-zambia