Kossisoroyce commited on
Commit
a838d5d
·
verified ·
1 Parent(s): 7bbe0bb

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +120 -26
README.md CHANGED
@@ -1,28 +1,122 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: country_name
5
- dtype: string
6
- - name: country_iso3
7
- dtype: string
8
- - name: year
9
- dtype: int64
10
- - name: Total electricity
11
- dtype: float64
12
- splits:
13
- - name: train
14
- num_bytes: 39897
15
- num_examples: 1121
16
- - name: test
17
- num_bytes: 9814
18
- num_examples: 281
19
- download_size: 12827
20
- dataset_size: 49711
21
- configs:
22
- - config_name: default
23
- data_files:
24
- - split: train
25
- path: data/train-*
26
- - split: test
27
- path: data/test-*
28
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
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
+
74
+ ```python
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_