Olaroti commited on
Commit
cb427fd
·
verified ·
1 Parent(s): a838d5d

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +94 -74
README.md CHANGED
@@ -5,69 +5,67 @@ 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
- - our-world-in-data
16
- - electricity-generation
17
- - owid
18
- - long-run-series
19
- - time-series
20
- pretty_name: "Electricity Generation | Africa (Our World in Data)"
 
 
 
 
 
 
 
21
  ---
22
 
23
- # Electricity Generation | Africa (Our World in Data)
24
 
25
- 🌍 **1,402 observations** · **54 Africa countries** · **1985–2025** · *Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
26
 
27
- ![rows](https://img.shields.io/badge/rows-1,402-blue) ![countries](https://img.shields.io/badge/countries-54-green) ![years](https://img.shields.io/badge/years-1985–2025-orange) ![license](https://img.shields.io/badge/license-cc-by-4.0-lightgrey)
 
 
 
28
 
29
  ## TL;DR
30
 
31
- This dataset contains **1,402 observations** of `Electricity Generation` data across **54 Africa countries**, spanning **1985–2025**.
32
-
33
- ## About the source
34
-
35
- - **Source:** [Our World in Data](https://ourworldindata.org/grapher/electricity-generation)
36
- - **Publisher:** Our World in Data
37
- - **License:** [cc-by-4.0](https://creativecommons.org/licenses/by/4.0/)
38
- - **Topic:** Electricity Generation
39
-
40
- ## Geographic coverage
41
-
42
- 54 Africa countries · top rows shown below, sorted by row count:
43
-
44
- | Country | Rows | First year | Last year |
45
- |---------|-----:|-----------:|----------:|
46
- | `EGY` | 41 | 1985 | 2025 |
47
- | `MAR` | 41 | 1985 | 2025 |
48
- | `ZAF` | 41 | 1985 | 2025 |
49
- | `DZA` | 40 | 1985 | 2024 |
50
- | `ETH` | 26 | 2000 | 2025 |
51
- | `NGA` | 26 | 2000 | 2025 |
52
- | `KEN` | 26 | 2000 | 2025 |
53
- | `TUN` | 26 | 2000 | 2025 |
54
- | `BFA` | 25 | 2000 | 2024 |
55
- | `BWA` | 25 | 2000 | 2024 |
56
- | `GHA` | 25 | 2000 | 2024 |
57
- | `CPV` | 25 | 2000 | 2024 |
58
- | `COD` | 25 | 2000 | 2024 |
59
- | `CMR` | 25 | 2000 | 2024 |
60
- | `GMB` | 25 | 2000 | 2024 |
61
- | ... | _39 more countries_ | | |
62
-
63
- ## Schema
64
-
65
- | Column | Type | Description | Example |
66
- |--------|------|-------------|---------|
67
- | `country_name` | `string` | — | `Algeria` |
68
- | `country_iso3` | `string` | — | `DZA` |
69
- | `year` | `int64` | — | `1985` |
70
- | `Total electricity` | `float64` | — | `12.274` |
71
 
72
  ## Usage
73
 
@@ -75,48 +73,70 @@ This dataset contains **1,402 observations** of `Electricity Generation` data ac
75
  from datasets import load_dataset
76
 
77
  ds = load_dataset("electricsheepafrica/africa-owid-electricity-generation")
78
- df = ds["train"].to_pandas()
79
- print(df.head())
 
 
 
 
80
  ```
81
 
82
- ### Filter to one country
83
 
84
  ```python
85
- kenya = df[df["country_iso3"] == "KEN"]
 
 
 
 
 
86
  ```
87
 
88
- ### Time-series for a single indicator
89
 
90
- ```python
91
- sample = df.sort_values("year")
92
- sample.plot(x="year", y="Total electricity")
93
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
  ## Citation
96
 
97
  ```bibtex
98
- @misc{africa_owid_electricity_generation_2025,
99
- title = {Electricity Generation | Africa (Our World in Data)},
100
- author = {Our World in Data},
101
- year = {2025},
102
- url = {https://ourworldindata.org/grapher/electricity-generation},
103
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
104
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-owid-electricity-generation}}
105
  }
106
  ```
107
 
108
  ## License
109
 
110
- Released under [cc-by-4.0](https://creativecommons.org/licenses/by/4.0/).
111
-
112
- Original data © Our World in Data. When using this dataset, please cite both the original source above and the Electric Sheep Africa repackaging.
113
 
114
- ## About Electric Sheep
115
 
116
- 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.
117
 
118
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
119
 
120
  ---
121
 
122
- _Provenance: ingested 2026-06-03 via the Electric Sheep pipeline. Source URL: https://ourworldindata.org/grapher/electricity-generation_
 
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
+ - "energy"
17
+ - "parquet"
18
+ - "tabular"
19
+ - "text"
20
+ - "our-world-in-data"
21
+ - "electricity-generation"
22
+ - "owid"
23
+ - "long-run-series"
24
+ - "time-series"
25
+ - "electricity"
26
+ pretty_name: "Electricity Generation | Africa (Our World in Data) | Africa (Electric Sheep Africa metadata inventory)"
27
  ---
28
 
29
+ # Electricity Generation | Africa (Our World in Data) | Africa (Electric Sheep Africa metadata inventory)
30
 
31
+ **Size category:** `1K<n<10K` - **Formats:** `parquet` - **Sector:** energy - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
32
 
33
+ ![size](https://img.shields.io/badge/size-1K%3Cn%3C10K-blue)
34
+ ![sector](https://img.shields.io/badge/sector-energy-green)
35
+ ![downloads](https://img.shields.io/badge/HF_downloads-10-orange)
36
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
37
 
38
  ## TL;DR
39
 
40
+ 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.
41
+
42
+ ## What This Dataset Covers
43
+
44
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
45
+
46
+ Dataset context from the existing Hugging Face card: Electricity Generation | Africa (Our World in Data) 🌍 1,402 observations · 54 Africa countries · 1985–2025 · Repackaged by Electric Sheep Africa TL;DR This dataset contains 1,402 observations of Electricity Generation data across 54 Africa countries, spanning 1985–2025. About the source Source: Our World in Data Publisher: Our World in Data License: cc-by-4.0 Topic: Electricity Generation Geographic coverage 54 Africa countries… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-owid-electricity-generation.
47
+
48
+ ## Dataset Profile
49
+
50
+ | Field | Value |
51
+ |---|---|
52
+ | Hugging Face repo | [`electricsheepafrica/africa-owid-electricity-generation`](https://huggingface.co/datasets/electricsheepafrica/africa-owid-electricity-generation) |
53
+ | Sector | energy |
54
+ | Topic tags | tabular, our-world-in-data, electricity-generation, owid, long-run-series, time-series |
55
+ | Modalities | `tabular`, `text` |
56
+ | Formats | `parquet` |
57
+ | Size category | `1K<n<10K` |
58
+ | Countries | Africa-wide or source-defined African coverage |
59
+ | ISO3 coverage | `not declared` |
60
+ | Last modified on HF | `2026-06-03 20:57:38+00:00` |
61
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
62
+
63
+ ## How To Read This Dataset
64
+
65
+ - Start from the repository files and the dataset viewer when available.
66
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
67
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
68
+ - Preserve missing values until you have a defensible imputation rule.
 
 
 
 
 
 
 
 
 
 
 
69
 
70
  ## Usage
71
 
 
73
  from datasets import load_dataset
74
 
75
  ds = load_dataset("electricsheepafrica/africa-owid-electricity-generation")
76
+ print(ds)
77
+
78
+ split_name = next(iter(ds))
79
+ table = ds[split_name]
80
+ print(table.features)
81
+ print(table[:3])
82
  ```
83
 
84
+ ### Convert To Pandas When Tabular
85
 
86
  ```python
87
+ from datasets import Dataset
88
+
89
+ first_split = ds[next(iter(ds))]
90
+ if isinstance(first_split, Dataset):
91
+ df = first_split.to_pandas()
92
+ print(df.head())
93
  ```
94
 
95
+ ## Data Quality Notes
96
 
97
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
98
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
99
+ - Metadata gaps from the inventory: country, upstream_publisher.
100
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
101
+
102
+ ## Source And Provenance
103
+
104
+ - **Source context:** Electric Sheep Africa metadata inventory
105
+ - **Publisher/source attribution:** Public dataset metadata
106
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
107
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-owid-electricity-generation](https://huggingface.co/datasets/electricsheepafrica/africa-owid-electricity-generation)
108
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
109
+
110
+ ## Suggested Analyses
111
+
112
+ - Inspect schema and missingness before modeling.
113
+ - Profile variables by geography, time, and subgroup columns where present.
114
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
115
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
116
 
117
  ## Citation
118
 
119
  ```bibtex
120
+ @misc{electric_sheep_africa_africa_owid_electricity_generation_2026,
121
+ title = {Electricity Generation | Africa (Our World in Data) | Africa (Electric Sheep Africa metadata inventory)},
122
+ author = {Public dataset metadata},
123
+ year = {2026},
124
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-owid-electricity-generation},
125
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
126
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-owid-electricity-generation}}
127
  }
128
  ```
129
 
130
  ## License
131
 
132
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
 
 
133
 
134
+ 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.
135
 
136
+ ## About Electric Sheep Africa
137
 
138
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
139
 
140
  ---
141
 
142
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.