Olaroti commited on
Commit
3466429
·
verified ·
1 Parent(s): 767ac76

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +96 -108
README.md CHANGED
@@ -5,103 +5,69 @@ language:
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
8
- - time-series-forecasting
9
  multilinguality: monolingual
10
  size_categories:
11
- - 1K<n<10K
12
  tags:
13
- - tabular
14
- - africa
15
- - afrobarometer
16
- - public-opinion-survey-—-namibia
17
- - survey
18
- - public-opinion
19
- - governance
20
- - democracy
21
- - microdata
22
- - namibia
23
- pretty_name: "Afrobarometer — Namibia"
 
 
 
 
 
 
24
  ---
25
 
26
- # Afrobarometer — Namibia
27
 
28
- 🌍 **1,200 observations** · **1 Africa countries** · **—–—** · *Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
29
 
30
- ![rows](https://img.shields.io/badge/rows-1,200-blue) ![countries](https://img.shields.io/badge/countries-1-green) ![license](https://img.shields.io/badge/license-cc-by-4.0-lightgrey)
 
 
 
31
 
32
  ## TL;DR
33
 
34
- This dataset contains **1,200 observations** of `Public Opinion Survey Namibia` data across **1 Africa countries**.
35
-
36
- ## About the source
37
-
38
- - **Source:** [Afrobarometer](https://www.afrobarometer.org/data/)
39
- - **Publisher:** Afrobarometer
40
- - **License:** [cc-by-4.0](https://creativecommons.org/licenses/by/4.0/)
41
- - **Topic:** Public Opinion Survey — Namibia
42
-
43
- ## Geographic coverage
44
-
45
- 1 Africa countries · top rows shown below, sorted by row count:
46
-
47
- | Country | Rows | First year | Last year |
48
- |---------|-----:|-----------:|----------:|
49
- | `Namibia` | 1,200 | | — |
50
-
51
- ## Schema
52
-
53
- | Column | Type | Description | Example |
54
- |--------|------|-------------|---------|
55
- | `country` | `string` | — | `Namibia` |
56
- | `respno` | `string` | — | `NAM1183` |
57
- | `backchk` | `string` | — | `No` |
58
- | `urbrur` | `string` | — | `Rural` |
59
- | `region` | `string` | | `Otjozundjupa` |
60
- | `district` | `string` | | `Otavi` |
61
- | `hholdse1` | `string` | | `Not Applicable` |
62
- | `hholdse2` | `string` | | `Not Applicable` |
63
- | `hholdse3` | `string` | — | `Not Applicable` |
64
- | `hholdse4` | `string` | — | `Not Applicable` |
65
- | `hholdse5` | `string` | — | `Not Applicable` |
66
- | `hholdse6` | `string` | — | `Not Applicable` |
67
- | `hholdse7` | `string` | — | `Not Applicable` |
68
- | `prevint` | `string` | — | `Female` |
69
- | `currint` | `string` | — | `Male` |
70
- | `calls` | `string` | — | `1` |
71
- | `dateintr` | `string` | — | `2006-02-28` |
72
- | `strtime` | `string` | — | `15:09:00` |
73
- | `q1` | `string` | — | `32.0` |
74
- | `q2` | `string` | — | `Yes` |
75
- | `q3` | `string` | — | `Oshiwambo` |
76
- | `q4a` | `string` | — | `Very good` |
77
- | `q4b` | `string` | — | `Very good` |
78
- | `q5` | `string` | — | `Same` |
79
- | `q6a` | `string` | — | `Better` |
80
- | `q6b` | `string` | — | `Much Better` |
81
- | `q7a` | `string` | — | `Much Better` |
82
- | `q7b` | `string` | — | `Much Better` |
83
- | `q8a` | `string` | — | `Always` |
84
- | `q8b` | `string` | — | `Several times` |
85
- | `q8c` | `string` | — | `Many times` |
86
- | `q8d` | `string` | — | `Never` |
87
- | `q8e` | `string` | — | `Just once or twice` |
88
- | `q8f` | `string` | — | `Several times` |
89
- | `q9a` | `string` | — | `Never` |
90
- | `q9b` | `string` | — | `Never` |
91
- | `q9c` | `string` | — | `Never` |
92
- | `q10` | `string` | — | `Agree with B` |
93
- | `q11` | `string` | — | `Agree with B` |
94
- | `q12` | `string` | — | `Agree with B` |
95
- | _... (262 more columns)_ | | | |
96
-
97
- ## Data quality & caveats
98
-
99
- - All Afrobarometer survey rounds for **Namibia**, one split per round.
100
- - Rounds included: R1 (1999-2001, 1,183 resp.), R2 (2002-2003, 1,199 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.).
101
- - Total: 10,782 respondents across 9 rounds.
102
- - Each round is a separate split (e.g. `round_9`) because question sets differ across rounds. Load one with `load_dataset("electricsheepafrica/africa-afrobarometer-namibia", split="round_9")`.
103
- - Columns are Q-coded survey questions with value labels applied; weights included (withinwt, combinwt).
104
- - **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-namibia", data_files="codebook.csv")` or read `codebook.json` directly.
105
 
106
  ## Usage
107
 
@@ -109,48 +75,70 @@ This dataset contains **1,200 observations** of `Public Opinion Survey — Namib
109
  from datasets import load_dataset
110
 
111
  ds = load_dataset("electricsheepafrica/africa-afrobarometer-namibia")
112
- df = ds["train"].to_pandas()
113
- print(df.head())
 
 
 
 
114
  ```
115
 
116
- ### Filter to one country
117
 
118
  ```python
119
- kenya = df[df["country"] == "KEN"]
 
 
 
 
 
120
  ```
121
 
122
- ### Time-series for a single indicator
123
 
124
- ```python
125
- sample = df.sort_values("None")
126
- sample.plot(x="None", y="None")
127
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
 
129
  ## Citation
130
 
131
  ```bibtex
132
- @misc{africa_afrobarometer_namibia_2026,
133
- title = {Afrobarometer — Namibia},
134
- author = {Afrobarometer},
135
  year = {2026},
136
- url = {https://www.afrobarometer.org/data/},
137
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
138
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-afrobarometer-namibia}}
139
  }
140
  ```
141
 
142
  ## License
143
 
144
- Released under [cc-by-4.0](https://creativecommons.org/licenses/by/4.0/).
145
-
146
- Original data © Afrobarometer. When using this dataset, please cite both the original source above and the Electric Sheep Africa repackaging.
147
 
148
- ## About Electric Sheep
149
 
150
- 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.
151
 
152
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
153
 
154
  ---
155
 
156
- _Provenance: ingested 2026-06-09 via the Electric Sheep pipeline. Source URL: https://www.afrobarometer.org/data/_
 
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
 
8
  multilinguality: monolingual
9
  size_categories:
10
+ - 10K<n<100K
11
  tags:
12
+ - "africa"
13
+ - "electric-sheep-africa"
14
+ - "open-data"
15
+ - "metadata-backed"
16
+ - "governance-security"
17
+ - "parquet"
18
+ - "tabular"
19
+ - "text"
20
+ - "afrobarometer"
21
+ - "public-opinion-survey-namibia"
22
+ - "survey"
23
+ - "public-opinion"
24
+ - "governance"
25
+ - "democracy"
26
+ - "microdata"
27
+ - "namibia"
28
+ pretty_name: "Afrobarometer — Namibia | Africa (Electric Sheep Africa metadata inventory)"
29
  ---
30
 
31
+ # Afrobarometer — Namibia | Africa (Electric Sheep Africa metadata inventory)
32
 
33
+ **Size category:** `10K<n<100K` - **Formats:** `parquet` - **Sector:** governance_security - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
34
 
35
+ ![size](https://img.shields.io/badge/size-10K%3Cn%3C100K-blue)
36
+ ![sector](https://img.shields.io/badge/sector-governance_security-green)
37
+ ![downloads](https://img.shields.io/badge/HF_downloads-9-orange)
38
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
39
 
40
  ## TL;DR
41
 
42
+ This dataset is part of the Electric Sheep Africa catalog on Hugging Face. It is indexed for African data discovery with standardized metadata, loading guidance, provenance notes, and analyst-oriented context.
43
+
44
+ ## What This Dataset Covers
45
+
46
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
47
+
48
+ Dataset context from the existing Hugging Face card: Afrobarometer — Namibia 🌍 1,200 observations · 1 Africa countries · —–— · Repackaged by Electric Sheep Africa TL;DR This dataset contains 1,200 observations of Public Opinion Survey — Namibia data across 1 Africa countries. About the source Source: Afrobarometer Publisher: Afrobarometer License: cc-by-4.0 Topic: Public Opinion Survey — Namibia Geographic coverage 1 Africa countries · top rows shown below, sorted by row count:… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-afrobarometer-namibia.
49
+
50
+ ## Dataset Profile
51
+
52
+ | Field | Value |
53
+ |---|---|
54
+ | Hugging Face repo | [`electricsheepafrica/africa-afrobarometer-namibia`](https://huggingface.co/datasets/electricsheepafrica/africa-afrobarometer-namibia) |
55
+ | Sector | governance_security |
56
+ | Topic tags | tabular, afrobarometer, public-opinion-survey--namibia, survey, public-opinion, governance, democracy, microdata, namibia |
57
+ | Modalities | `tabular`, `text` |
58
+ | Formats | `parquet` |
59
+ | Size category | `10K<n<100K` |
60
+ | Countries | Namibia |
61
+ | ISO3 coverage | `NAM` |
62
+ | Last modified on HF | `2026-06-09 20:24:48+00:00` |
63
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
64
+
65
+ ## How To Read This Dataset
66
+
67
+ - Start from the repository files and the dataset viewer when available.
68
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
69
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
70
+ - Preserve missing values until you have a defensible imputation rule.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  ## Usage
73
 
 
75
  from datasets import load_dataset
76
 
77
  ds = load_dataset("electricsheepafrica/africa-afrobarometer-namibia")
78
+ print(ds)
79
+
80
+ split_name = next(iter(ds))
81
+ table = ds[split_name]
82
+ print(table.features)
83
+ print(table[:3])
84
  ```
85
 
86
+ ### Convert To Pandas When Tabular
87
 
88
  ```python
89
+ from datasets import Dataset
90
+
91
+ first_split = ds[next(iter(ds))]
92
+ if isinstance(first_split, Dataset):
93
+ df = first_split.to_pandas()
94
+ print(df.head())
95
  ```
96
 
97
+ ## Data Quality Notes
98
 
99
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
100
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
101
+ - Metadata gaps from the inventory: upstream_publisher.
102
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
103
+
104
+ ## Source And Provenance
105
+
106
+ - **Source context:** Electric Sheep Africa metadata inventory
107
+ - **Publisher/source attribution:** Public dataset metadata
108
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
109
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-afrobarometer-namibia](https://huggingface.co/datasets/electricsheepafrica/africa-afrobarometer-namibia)
110
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
111
+
112
+ ## Suggested Analyses
113
+
114
+ - Inspect schema and missingness before modeling.
115
+ - Profile variables by geography, time, and subgroup columns where present.
116
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
117
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
118
 
119
  ## Citation
120
 
121
  ```bibtex
122
+ @misc{electric_sheep_africa_africa_afrobarometer_namibia_2026,
123
+ title = {Afrobarometer — Namibia | Africa (Electric Sheep Africa metadata inventory)},
124
+ author = {Public dataset metadata},
125
  year = {2026},
126
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-afrobarometer-namibia},
127
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
128
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-afrobarometer-namibia}}
129
  }
130
  ```
131
 
132
  ## License
133
 
134
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
 
 
135
 
136
+ Original source rights remain with the original publisher or data provider. Electric Sheep Africa engineering standardizes discovery metadata, documentation, and usage guidance for analysis on Hugging Face.
137
 
138
+ ## About Electric Sheep Africa
139
 
140
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
141
 
142
  ---
143
 
144
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.