Olaroti commited on
Commit
be131c6
·
verified ·
1 Parent(s): 9d9cb02

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +104 -120
README.md CHANGED
@@ -1,163 +1,147 @@
1
  ---
2
- annotations_creators:
3
- - no-annotation
4
- language_creators:
5
- - found
6
  language:
7
  - en
8
- license: other
9
- multilinguality:
10
- - monolingual
11
- size_categories:
12
- - 1K<n<10K
13
- source_datasets:
14
- - original
15
  task_categories:
16
  - tabular-classification
17
  - tabular-regression
18
- task_ids: []
 
 
19
  tags:
20
- - africa
21
- - humanitarian
22
- - hdx
23
- - electric-sheep-africa
24
- - climate-weather
25
- - environment
26
- - alb
27
- - dza
28
- - asm
29
- - ago
30
- - aia
31
- pretty_name: "Climate Change Opinion Survey"
32
- dataset_info:
33
- splits:
34
- - name: train
35
- num_examples: 4112
36
- - name: test
37
- num_examples: 1028
 
 
38
  ---
39
 
40
- # Climate Change Opinion Survey
41
 
42
- **Publisher:** AI for Good at Meta · **Source:** [HDX](https://data.humdata.org/dataset/climate-change-opinion-survey) · **License:** `other-pd-nr` · **Updated:** 2026-03-26
43
 
44
- ---
 
 
 
45
 
46
- ## Abstract
47
 
48
- In partnership with Yale, Meta launched a climate change opinion survey that explores public climate change knowledge, attitudes, policy preferences, and behaviors. 2023 aggregated survey responses now available.
49
-
50
- The 2022 survey includes respondents from nearly 200 countries and territories. We are sharing country level data from this survey, providing policymakers, research institutions, and nonprofits with an international view of public climate change opinion.
51
-
52
- For more information please see https://ai.meta.com/ai-for-good/datasets/climate-change-opinion-survey/
53
-
54
- If you're interested in becoming a research partner and accessing record level data, please email aiforgood@meta.com.
55
 
56
- Each row in this dataset represents first-level administrative unit observations. Data was last updated on HDX on 2026-03-26. Geographic scope: **ALB, DZA, ASM, AGO, AIA, ATG, ARG, ARM, and 185 others**.
57
 
58
- *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
59
 
60
- ---
61
 
62
- ## Dataset Characteristics
63
 
64
- | | |
65
  |---|---|
66
- | **Domain** | Climate and environment |
67
- | **Unit of observation** | First-level administrative unit observations |
68
- | **Rows (total)** | 5,140 |
69
- | **Columns** | 11 (4 numeric, 7 categorical, 0 datetime) |
70
- | **Train split** | 4,112 rows |
71
- | **Test split** | 1,028 rows |
72
- | **Geographic scope** | ALB, DZA, ASM, AGO, AIA, ATG, ARG, ARM, and 185 others |
73
- | **Publisher** | AI for Good at Meta |
74
- | **HDX last updated** | 2026-03-26 |
75
-
76
- ---
77
-
78
- ## Variables
79
-
80
- **Geographic** `region` (Europe, Asia, Southwest Asia & North Africa), `country_code` (hk, jp, no), `country` (Hong Kong, Japan, Norway).
81
-
82
- **Outcome / Measurement** `pct` (range 0.0–86.5244).
83
-
84
- **Identifier / Metadata** — `esa_source` (HDX), `esa_processed` (2026-04-04).
85
-
86
- **Other** — `response` (I have not done this, I have done this, Not applicable), `freq` (range 0.0–2155.7138), `n` (range 12.4363–2836.0), `prop` (range 0.0–0.8652), `variable` (barriers_heatpump_haventadopted, barriers_ev_haventadopted, barriers_solar_haventadopted).
87
-
88
- ---
89
-
90
- ## Quick Start
91
 
92
  ```python
93
  from datasets import load_dataset
94
 
95
- ds = load_dataset("electricsheepafrica/hdx-climate-change-opinion-survey")
96
- train = ds["train"].to_pandas()
97
- test = ds["test"].to_pandas()
98
 
99
- print(train.shape)
100
- train.head()
 
 
101
  ```
102
 
103
- ---
104
-
105
- ## Schema
106
-
107
- | Column | Type | Null % | Range / Sample Values |
108
- |---|---|---|---|
109
- | `region` | object | 0.0% | Europe, Asia, Southwest Asia & North Africa |
110
- | `country_code` | object | 0.0% | hk, jp, no |
111
- | `country` | object | 0.0% | Hong Kong, Japan, Norway |
112
- | `response` | object | 0.0% | I have not done this, I have done this, Not applicable |
113
- | `freq` | float64 | 0.0% | 0.0 – 2155.7138 (mean 100.6589) |
114
- | `n` | float64 | 0.0% | 12.4363 – 2836.0 (mean 608.2886) |
115
- | `prop` | float64 | 0.0% | 0.0 – 0.8652 (mean 0.1557) |
116
- | `pct` | float64 | 0.0% | 0.0 – 86.5244 (mean 15.5693) |
117
- | `variable` | object | 0.0% | barriers_heatpump_haventadopted, barriers_ev_haventadopted, barriers_solar_haventadopted |
118
- | `esa_source` | object | 0.0% | HDX |
119
- | `esa_processed` | object | 0.0% | 2026-04-04 |
120
-
121
- ---
122
-
123
- ## Numeric Summary
124
 
125
- | Column | Min | Max | Mean | Median |
126
- |---|---|---|---|---|
127
- | `freq` | 0.0 | 2155.7138 | 100.6589 | 39.2444 |
128
- | `n` | 12.4363 | 2836.0 | 608.2886 | 551.0772 |
129
- | `prop` | 0.0 | 0.8652 | 0.1557 | 0.0955 |
130
- | `pct` | 0.0 | 86.5244 | 15.5693 | 9.5545 |
131
 
132
- ---
 
 
 
 
133
 
134
- ## Curation
135
 
136
- 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`. The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.
 
 
 
137
 
138
- ---
139
 
140
- ## Limitations
 
 
 
 
141
 
142
- - Data originates from AI for Good at Meta and has not been independently validated by ESA.
143
- - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
144
- - This dataset spans 193 countries; geographic and methodological inconsistencies across national boundaries may affect cross-country comparability.
145
- - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/climate-change-opinion-survey) for the publisher's own methodology notes and caveats.
146
 
147
- ---
 
 
 
148
 
149
  ## Citation
150
 
151
  ```bibtex
152
- @dataset{hdx_hdx_climate_change_opinion_survey,
153
- title = {Climate Change Opinion Survey},
154
- author = {AI for Good at Meta},
155
- year = {2026},
156
- url = {https://data.humdata.org/dataset/climate-change-opinion-survey},
157
- note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
 
158
  }
159
  ```
160
 
 
 
 
 
 
 
 
 
 
 
161
  ---
162
 
163
- *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) Africa's ML dataset infrastructure. Lagos, Nigeria.*
 
1
  ---
2
+ license: other
 
 
 
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
+ - "climate-environment"
17
+ - "parquet"
18
+ - "tabular"
19
+ - "text"
20
+ - "humanitarian"
21
+ - "hdx"
22
+ - "climate-weather"
23
+ - "environment"
24
+ - "alb"
25
+ - "dza"
26
+ - "asm"
27
+ - "ago"
28
+ - "aia"
29
+ - "climate"
30
+ - "weather"
31
+ pretty_name: "Climate Change Opinion Survey | Africa (original)"
32
  ---
33
 
34
+ # Climate Change Opinion Survey | Africa (original)
35
 
36
+ **Size category:** `1K<n<10K` - **Formats:** `parquet` - **Sector:** climate_environment - *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-climate_environment-green)
40
+ ![downloads](https://img.shields.io/badge/HF_downloads-25-orange)
41
+ ![license](https://img.shields.io/badge/license-other-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: Climate Change Opinion Survey Publisher: AI for Good at Meta · Source: HDX · License: other-pd-nr · Updated: 2026-03-26 Abstract In partnership with Yale, Meta launched a climate change opinion survey that explores public climate change knowledge, attitudes, policy preferences, and behaviors. 2023 aggregated survey responses now available. The 2022 survey includes respondents from nearly 200 countries and territories. We are sharing country level data from this survey… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/hdx-climate-change-opinion-survey.
52
 
53
+ ## Dataset Profile
54
 
55
+ | Field | Value |
56
  |---|---|
57
+ | Hugging Face repo | [`electricsheepafrica/hdx-climate-change-opinion-survey`](https://huggingface.co/datasets/electricsheepafrica/hdx-climate-change-opinion-survey) |
58
+ | Sector | climate_environment |
59
+ | Topic tags | humanitarian, hdx, electric-sheep-africa, climate-weather, environment, alb, dza, asm, ago, aia |
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-04 09:46:11+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/hdx-climate-change-opinion-survey")
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:** Source-specific or other license
112
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/hdx-climate-change-opinion-survey](https://huggingface.co/datasets/electricsheepafrica/hdx-climate-change-opinion-survey)
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_hdx_climate_change_opinion_survey_2026,
126
+ title = {Climate Change Opinion Survey | Africa (original)},
127
+ author = {original},
128
+ year = {2026},
129
+ url = {https://huggingface.co/datasets/electricsheepafrica/hdx-climate-change-opinion-survey},
130
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
131
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/hdx-climate-change-opinion-survey}}
132
  }
133
  ```
134
 
135
+ ## License
136
+
137
+ Released under Source-specific or other license.
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`.