Dataset Viewer
Auto-converted to Parquet Duplicate
The dataset viewer is not available for this split.
The number of columns (1590) 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 — Senegal

🌍 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 — Senegal 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
Senegal 1,200

Schema

Column Type Description Example
country string Senegal
respno string SEN0001
backchk string Yes
urbrur string Urban
region string Dakar
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 2002-12-03
strtime string 09:36:00
q1a string Fairly bad
q1b string Fairly bad
q2a string Worse
q2b string Don't know
q3a string Same
q3b string Worse
q4a string Same
q4b string Same
q5a string Lack of food
q5b string Any life-threatening situation
q5c string Lack of employment/jobs
q6a string 02
q6b string 05
q6c string 04
q7a string Not at All
q7b string A Lot
q7c string Not at All
q7d string Not at All
q7e string Not at All
q7f string Not at All
q7g string Not at All
q7h string A Lot
q7i string Not at All
... (290 more columns)

Data quality & caveats

  • All Afrobarometer survey rounds for Senegal, one split per round.
  • Rounds included: R2 (2002-2003, 1,200 resp.), R3 (2005-2006, 1,200 resp.), R4 (2008-2009, 1,200 resp.), R5 (2011-2013, 1,200 resp.), R6 (2014-2015, 1,200 resp.), R7 (2016-2018, 1,200 resp.), R8 (2019-2021, 1,200 resp.), R9 (2021-2023, 1,200 resp.).
  • Total: 9,600 respondents across 8 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-senegal", 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-senegal", data_files="codebook.csv") or read codebook.json directly.

Usage

from datasets import load_dataset

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

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
6

Collection including electricsheepafrica/africa-afrobarometer-senegal