Olaroti commited on
Commit
4c6f815
·
verified ·
1 Parent(s): 0565433

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +105 -177
README.md CHANGED
@@ -1,219 +1,147 @@
1
  ---
2
- annotations_creators:
3
- - no-annotation
4
- language_creators:
5
- - found
6
  language:
7
  - en
8
- license: cc-by-4.0
9
- multilinguality:
10
- - monolingual
11
- size_categories:
12
- - 1K<n<10K
13
- source_datasets:
14
- - original
15
  task_categories:
16
  - tabular-classification
17
- - other
18
- task_ids: []
 
 
19
  tags:
20
- - africa
21
- - humanitarian
22
- - hdx
23
- - electric-sheep-africa
24
- - covid-19
25
- - epidemics-outbreaks
26
- - health
27
- - ben
28
- - civ
29
- - cod
30
- - gha
31
- - ken
32
- pretty_name: "Perceptions and impact of Coronavirus in Sub-Saharan African countries"
33
- dataset_info:
34
- splits:
35
- - name: train
36
- num_examples: 3189
37
- - name: test
38
- num_examples: 797
 
39
  ---
40
 
41
- # Perceptions and impact of Coronavirus in Sub-Saharan African countries
42
 
43
- **Publisher:** Mobile Accord, Inc. (GeoPoll) · **Source:** [HDX](https://data.humdata.org/dataset/covid-19-impacts-africa) · **License:** `cc-by` · **Updated:** 2025-09-26
44
 
45
- ---
 
 
 
46
 
47
- ## Abstract
48
 
49
- This data and report examine perceptions and the impact of COVID-19 in 12 countries throughout sub-Saharan Africa. Topics covered include greatest concerns surrounding coronavirus, preventative measures being taken, changes in food market operability and food security, consumer behavior changes, and trust in governments to prevent the spread of coronavirus. This dataset includes data from 10 of the markets. Please contact us for access to data from all markets, the questionnaire, and with any other questions.
50
 
51
- Each row in this dataset represents first-level administrative unit observations. Temporal coverage is indicated by the `survey_date` column(s). Geographic scope: **BEN, CIV, COD, GHA, KEN, MOZ, NGA, RWA, and 4 others**.
52
 
53
- *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
54
 
55
- ---
56
 
57
- ## Dataset Characteristics
58
 
59
- | | |
60
  |---|---|
61
- | **Domain** | Food security and nutrition |
62
- | **Unit of observation** | First-level administrative unit observations |
63
- | **Rows (total)** | 3,987 |
64
- | **Columns** | 64 (9 numeric, 28 categorical, 1 datetime) |
65
- | **Train split** | 3,189 rows |
66
- | **Test split** | 797 rows |
67
- | **Geographic scope** | BEN, CIV, COD, GHA, KEN, MOZ, NGA, RWA, and 4 others |
68
- | **Publisher** | Mobile Accord, Inc. (GeoPoll) |
69
- | **HDX last updated** | 2025-09-26 |
70
-
71
- ---
72
-
73
- ## Variables
74
-
75
- **Geographic** `survey_date`, `country` (Kenya, Nigeria, Ghana), `admin1` (Lusaka, Abidjan, Kigali), `birthyear` (range 1928.0–2004.0), `preventativemeasures_avoiding_public_places` and 7 others.
76
-
77
- **Demographic** `gender_weights` (range 0.7608–1.4586), `age_group_weights` (range 0.619–1.8537), `gender` (Male, Female), `age_group` (15-25, 26-35, 36+), `age` (range 15.0–91.0) and 1 others.
78
-
79
- **Outcome / Measurement** — `total_weights` (range 0.1396–6.4719), `foodamount`.
80
-
81
- **Identifier / Metadata** — `preventativemeasures_avoiding_public_transport`, `informationsources_newspapers`, `informationsources_other`, `informationsources_radio`, `informationsources_social_media` and 3 others.
82
-
83
- **Other** — `adm1_weights` (range 0.2219–3.7881), `sec` (C1, B, A), `awareness` (Yes), `urban_rural` (Urban area, Rural area), `biggestchallenge` (Money, Corona virus, Coronavirus) and 31 others.
84
-
85
- ---
86
-
87
- ## Quick Start
88
 
89
  ```python
90
  from datasets import load_dataset
91
 
92
- ds = load_dataset("electricsheepafrica/africa-covid-19-impacts-africa")
93
- train = ds["train"].to_pandas()
94
- test = ds["test"].to_pandas()
95
 
96
- print(train.shape)
97
- train.head()
 
 
98
  ```
99
 
100
- ---
101
 
102
- ## Schema
103
-
104
- | Column | Type | Null % | Range / Sample Values |
105
- |---|---|---|---|
106
- | `gender_weights` | float64 | 0.0% | 0.7608 – 1.4586 (mean 1.0) |
107
- | `age_group_weights` | float64 | 0.0% | 0.619 – 1.8537 (mean 1.0001) |
108
- | `adm1_weights` | float64 | 0.0% | 0.2219 – 3.7881 (mean 0.9987) |
109
- | `total_weights` | float64 | 0.0% | 0.1396 – 6.4719 (mean 0.9881) |
110
- | `survey_date` | datetime64[ns] | 0.0% | |
111
- | `country` | object | 0.0% | Kenya, Nigeria, Ghana |
112
- | `gender` | object | 0.0% | Male, Female |
113
- | `age_group` | object | 0.0% | 15-25, 26-35, 36+ |
114
- | `admin1` | object | 0.0% | Lusaka, Abidjan, Kigali |
115
- | `sec` | object | 0.0% | C1, B, A |
116
- | `age` | int64 | 0.0% | 15.0 – 91.0 (mean 31.2904) |
117
- | `birthyear` | int64 | 0.0% | 1928.0 – 2004.0 (mean 1987.7096) |
118
- | `awareness` | object | 0.0% | Yes |
119
- | `urban_rural` | object | 0.0% | Urban area, Rural area |
120
- | `biggestchallenge` | object | 49.9% | Money, Corona virus, Coronavirus |
121
- | `levelconcern` | int64 | 0.0% | 1.0 – 5.0 (mean 4.3128) |
122
- | `concerns` | object | 0.0% | Contracting the disease, Economic impact, Global infections |
123
- | `riskawareness` | object | 0.0% | Yes, No |
124
- | `tested` | object | 0.0% | |
125
- | `virusprevention` | object | 0.0% | |
126
- | `preventativemeasures_avoiding_public_places` | bool | 0.0% | |
127
- | `preventativemeasures_avoiding_public_transport` | bool | 0.0% | |
128
- | `preventativemeasures_increasing_hygiene` | bool | 0.0% | |
129
- | `preventativemeasures_other` | bool | 0.0% | |
130
- | `preventativemeasures_working_from_home` | bool | 0.0% | |
131
- | `handwashing` | object | 0.0% | |
132
- | `socialdistancing` | object | 0.0% | |
133
- | `healthbehavior` | object | 0.0% | |
134
- | `economicimpact` | int64 | 0.0% | 1.0 – 5.0 (mean 4.2854) |
135
- | `marketoperability` | object | 0.0% | |
136
- | `foodlocations` | object | 0.0% | |
137
- | `foodlocations2` | object | 48.3% | |
138
- | `foodshopping` | object | 0.0% | |
139
- | `foodamount` | object | 0.0% | |
140
- | `foodworry` | object | 0.0% | |
141
- | `brandpurchase` | object | 20.3% | |
142
- | `nonessentialitems` | object | 0.0% | |
143
- | `governmenttrust` | int64 | 0.0% | 1.0 – 5.0 (mean 3.4542) |
144
- | `commercialtrust_banks` | bool | 0.0% | |
145
- | `commercialtrust_brands` | bool | 0.0% | |
146
- | `commercialtrust_other` | bool | 0.0% | |
147
- | `commercialtrust_retailers` | bool | 0.0% | |
148
- | `commercialtrust_telecommuncations` | bool | 0.0% | |
149
- | `initiativetaken_limited_store_traffic` | bool | 0.0% | |
150
- | `initiativetaken_none` | bool | 0.0% | |
151
- | `initiativetaken_sectioned_intercepts` | bool | 0.0% | |
152
- | `initiativetaken_staff_in_protective_gear` | bool | 0.0% | |
153
- | `groups_brands` | bool | 0.0% | |
154
- | `groups_governments` | bool | 0.0% | |
155
- | `groups_ngos` | bool | 0.0% | |
156
- | `groups_private_sector` | bool | 0.0% | |
157
- | `groups_retailers` | bool | 0.0% | |
158
- | `informationsources_friends_family` | bool | 0.0% | |
159
- | `informationsources_government_messages` | bool | 0.0% | |
160
- | `informationsources_newspapers` | bool | 0.0% | |
161
- | `informationsources_other` | bool | 0.0% | |
162
- | `informationsources_radio` | bool | 0.0% | |
163
- | `informationsources_social_media` | bool | 0.0% | |
164
- | `informationsources_tv` | bool | 0.0% | |
165
- | `socialmedia` | object | 59.3% | |
166
- | `mediaconsumption` | object | 0.0% | |
167
- | `staypositive` | object | 49.9% | |
168
- | `esa_source` | object | 0.0% | |
169
- | `esa_processed` | object | 0.0% | |
170
-
171
- ---
172
-
173
- ## Numeric Summary
174
-
175
- | Column | Min | Max | Mean | Median |
176
- |---|---|---|---|---|
177
- | `gender_weights` | 0.7608 | 1.4586 | 1.0 | 1.0 |
178
- | `age_group_weights` | 0.619 | 1.8537 | 1.0001 | 1.0 |
179
- | `adm1_weights` | 0.2219 | 3.7881 | 0.9987 | 1.0 |
180
- | `total_weights` | 0.1396 | 6.4719 | 0.9881 | 1.0 |
181
- | `age` | 15.0 | 91.0 | 31.2904 | 29.0 |
182
- | `birthyear` | 1928.0 | 2004.0 | 1987.7096 | 1990.0 |
183
- | `levelconcern` | 1.0 | 5.0 | 4.3128 | 5.0 |
184
- | `economicimpact` | 1.0 | 5.0 | 4.2854 | 5.0 |
185
- | `governmenttrust` | 1.0 | 5.0 | 3.4542 | 4.0 |
186
 
187
- ---
 
 
 
 
188
 
189
- ## Curation
190
 
191
- Raw data was downloaded from HDX via the CKAN API and converted to Parquet. Column names were lowercased and standardised to snake_case. Common missing-value markers (`N/A`, `null`, `none`, `-`, `unknown`, `no data`, `#N/A`) were unified to `NaN`. 1 exact duplicate rows were removed. The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.
 
 
 
192
 
193
- ---
194
 
195
- ## Limitations
 
 
 
 
196
 
197
- - Data originates from Mobile Accord, Inc. (GeoPoll) and has not been independently validated by ESA.
198
- - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
199
- - The following columns have >20% missing values and should be treated with caution in modelling: `biggestchallenge`, `foodlocations2`, `brandpurchase`, `socialmedia`, `staypositive`.
200
- - This dataset spans 12 countries; geographic and methodological inconsistencies across national boundaries may affect cross-country comparability.
201
- - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/covid-19-impacts-africa) for the publisher's own methodology notes and caveats.
202
 
203
- ---
 
 
 
204
 
205
  ## Citation
206
 
207
  ```bibtex
208
- @dataset{hdx_africa_covid_19_impacts_africa,
209
- title = {Perceptions and impact of Coronavirus in Sub-Saharan African countries},
210
- author = {Mobile Accord, Inc. (GeoPoll)},
211
- year = {2025},
212
- url = {https://data.humdata.org/dataset/covid-19-impacts-africa},
213
- note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
 
214
  }
215
  ```
216
 
 
 
 
 
 
 
 
 
 
 
217
  ---
218
 
219
- *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) Africa's ML dataset infrastructure. Lagos, Nigeria.*
 
1
  ---
2
+ license: cc-by-4.0
 
 
 
3
  language:
4
  - en
 
 
 
 
 
 
 
5
  task_categories:
6
  - tabular-classification
7
+ - tabular-regression
8
+ multilinguality: monolingual
9
+ size_categories:
10
+ - 1K<n<10K
11
  tags:
12
+ - "africa"
13
+ - "electric-sheep-africa"
14
+ - "open-data"
15
+ - "metadata-backed"
16
+ - "humanitarian-development"
17
+ - "parquet"
18
+ - "tabular"
19
+ - "text"
20
+ - "humanitarian"
21
+ - "hdx"
22
+ - "covid-19"
23
+ - "epidemics-outbreaks"
24
+ - "health"
25
+ - "ben"
26
+ - "civ"
27
+ - "cod"
28
+ - "gha"
29
+ - "ken"
30
+ - "food-security"
31
+ pretty_name: "Perceptions and impact of Coronavirus in Sub-Saharan African countries | Africa (original)"
32
  ---
33
 
34
+ # Perceptions and impact of Coronavirus in Sub-Saharan African countries | Africa (original)
35
 
36
+ **Size category:** `1K<n<10K` - **Formats:** `parquet` - **Sector:** humanitarian_development - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
37
 
38
+ ![size](https://img.shields.io/badge/size-1K%3Cn%3C10K-blue)
39
+ ![sector](https://img.shields.io/badge/sector-humanitarian_development-green)
40
+ ![downloads](https://img.shields.io/badge/HF_downloads-8-orange)
41
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
42
 
43
+ ## TL;DR
44
 
45
+ 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.
46
 
47
+ ## What This Dataset Covers
48
 
49
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
50
 
51
+ Dataset context from the existing Hugging Face card: Perceptions and impact of Coronavirus in Sub-Saharan African countries Publisher: Mobile Accord, Inc. (GeoPoll) · Source: HDX · License: cc-by · Updated: 2025-09-26 Abstract This data and report examine perceptions and the impact of COVID-19 in 12 countries throughout sub-Saharan Africa. Topics covered include greatest concerns surrounding coronavirus, preventative measures being taken, changes in food market operability and food security, consumer behavior changes, and… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-covid-19-impacts-africa.
52
 
53
+ ## Dataset Profile
54
 
55
+ | Field | Value |
56
  |---|---|
57
+ | Hugging Face repo | [`electricsheepafrica/africa-covid-19-impacts-africa`](https://huggingface.co/datasets/electricsheepafrica/africa-covid-19-impacts-africa) |
58
+ | Sector | humanitarian_development |
59
+ | Topic tags | humanitarian, hdx, electric-sheep-africa, covid-19, epidemics-outbreaks, health, ben, civ, cod, gha, ken |
60
+ | Modalities | `tabular`, `text` |
61
+ | Formats | `parquet` |
62
+ | Size category | `1K<n<10K` |
63
+ | Countries | Africa-wide or source-defined African coverage |
64
+ | ISO3 coverage | `not declared` |
65
+ | Last modified on HF | `2026-04-20 08:44:22+00:00` |
66
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
67
+
68
+ ## How To Read This Dataset
69
+
70
+ - Start from the repository files and the dataset viewer when available.
71
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
72
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
73
+ - Preserve missing values until you have a defensible imputation rule.
74
+
75
+ ## Usage
 
 
 
 
 
 
 
 
76
 
77
  ```python
78
  from datasets import load_dataset
79
 
80
+ ds = load_dataset("electricsheepafrica/africa-covid-19-impacts-africa")
81
+ print(ds)
 
82
 
83
+ split_name = next(iter(ds))
84
+ table = ds[split_name]
85
+ print(table.features)
86
+ print(table[:3])
87
  ```
88
 
89
+ ### Convert To Pandas When Tabular
90
 
91
+ ```python
92
+ from datasets import Dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
 
94
+ first_split = ds[next(iter(ds))]
95
+ if isinstance(first_split, Dataset):
96
+ df = first_split.to_pandas()
97
+ print(df.head())
98
+ ```
99
 
100
+ ## Data Quality Notes
101
 
102
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
103
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
104
+ - Metadata gaps from the inventory: country, upstream_publisher.
105
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
106
 
107
+ ## Source And Provenance
108
 
109
+ - **Source context:** original
110
+ - **Publisher/source attribution:** original
111
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
112
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-covid-19-impacts-africa](https://huggingface.co/datasets/electricsheepafrica/africa-covid-19-impacts-africa)
113
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
114
 
115
+ ## Suggested Analyses
 
 
 
 
116
 
117
+ - Inspect schema and missingness before modeling.
118
+ - Profile variables by geography, time, and subgroup columns where present.
119
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
120
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
121
 
122
  ## Citation
123
 
124
  ```bibtex
125
+ @misc{electric_sheep_africa_africa_covid_19_impacts_africa_2026,
126
+ title = {Perceptions and impact of Coronavirus in Sub-Saharan African countries | Africa (original)},
127
+ author = {original},
128
+ year = {2026},
129
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-covid-19-impacts-africa},
130
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
131
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-covid-19-impacts-africa}}
132
  }
133
  ```
134
 
135
+ ## License
136
+
137
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
138
+
139
+ 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.
140
+
141
+ ## About Electric Sheep Africa
142
+
143
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
144
+
145
  ---
146
 
147
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.