Olaroti commited on
Commit
0b10620
·
verified ·
1 Parent(s): d1fe48e

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +94 -80
README.md CHANGED
@@ -5,75 +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
- - solar-pv-energy-consumption-vs-solar-pv-capacity
17
- - owid
18
- - long-run-series
19
- - time-series
20
- pretty_name: "Solar Pv Energy Consumption Vs Solar Pv Capacity | Africa (Our World in Data)"
 
 
 
 
 
 
 
21
  ---
22
 
23
- # Solar Pv Energy Consumption Vs Solar Pv Capacity | Africa (Our World in Data)
24
 
25
- 🌍 **1,034 observations** · **54 Africa countries** · **1965–2024** · *Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
26
 
27
- ![rows](https://img.shields.io/badge/rows-1,034-blue) ![countries](https://img.shields.io/badge/countries-54-green) ![years](https://img.shields.io/badge/years-1965–2024-orange) ![license](https://img.shields.io/badge/license-cc-by-4.0-lightgrey)
 
 
 
28
 
29
  ## TL;DR
30
 
31
- This dataset contains **1,034 observations** of `Solar Pv Energy Consumption Vs Solar Pv Capacity` data across **54 Africa countries**, spanning **1965–2024**.
32
-
33
- ## About the source
34
-
35
- - **Source:** [Our World in Data](https://ourworldindata.org/grapher/solar-pv-energy-consumption-vs-solar-pv-capacity)
36
- - **Publisher:** Our World in Data
37
- - **License:** [cc-by-4.0](https://creativecommons.org/licenses/by/4.0/)
38
- - **Topic:** Solar Pv Energy Consumption Vs Solar Pv Capacity
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` | 60 | 1965 | 2024 |
47
- | `DZA` | 60 | 1965 | 2024 |
48
- | `ZAF` | 60 | 1965 | 2024 |
49
- | `MAR` | 60 | 1965 | 2024 |
50
- | `MWI` | 25 | 2000 | 2024 |
51
- | `NER` | 25 | 2000 | 2024 |
52
- | `TUN` | 25 | 2000 | 2024 |
53
- | `NAM` | 24 | 2001 | 2024 |
54
- | `SDN` | 23 | 2002 | 2024 |
55
- | `LBY` | 22 | 2003 | 2024 |
56
- | `CMR` | 22 | 2003 | 2024 |
57
- | `BFA` | 21 | 2004 | 2024 |
58
- | `SLE` | 21 | 2004 | 2024 |
59
- | `KEN` | 20 | 2005 | 2024 |
60
- | `ZWE` | 19 | 2006 | 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` | — | `1965` |
70
- | `Solar generation` | `float64` | — | `0.0` |
71
- | `Solar capacity` | `float64` | — | `0.025` |
72
- | `World region according to OWID` | `string` | — | `Africa` |
73
-
74
- ## Data quality & caveats
75
-
76
- - `Solar generation` column has 76.8% null values (filtered to non-null in this dataset).
77
 
78
  ## Usage
79
 
@@ -81,48 +73,70 @@ This dataset contains **1,034 observations** of `Solar Pv Energy Consumption Vs
81
  from datasets import load_dataset
82
 
83
  ds = load_dataset("electricsheepafrica/africa-owid-solar-pv-energy-consumption-vs-solar-pv-capacity")
84
- df = ds["train"].to_pandas()
85
- print(df.head())
 
 
 
 
86
  ```
87
 
88
- ### Filter to one country
89
 
90
  ```python
91
- kenya = df[df["country_iso3"] == "KEN"]
 
 
 
 
 
92
  ```
93
 
94
- ### Time-series for a single indicator
95
 
96
- ```python
97
- sample = df.sort_values("year")
98
- sample.plot(x="year", y="Solar generation")
99
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
 
101
  ## Citation
102
 
103
  ```bibtex
104
- @misc{africa_owid_solar_pv_energy_consumption_vs_solar_pv_capacity_2024,
105
- title = {Solar Pv Energy Consumption Vs Solar Pv Capacity | Africa (Our World in Data)},
106
- author = {Our World in Data},
107
- year = {2024},
108
- url = {https://ourworldindata.org/grapher/solar-pv-energy-consumption-vs-solar-pv-capacity},
109
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
110
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-owid-solar-pv-energy-consumption-vs-solar-pv-capacity}}
111
  }
112
  ```
113
 
114
  ## License
115
 
116
- Released under [cc-by-4.0](https://creativecommons.org/licenses/by/4.0/).
117
-
118
- Original data © Our World in Data. When using this dataset, please cite both the original source above and the Electric Sheep Africa repackaging.
119
 
120
- ## About Electric Sheep
121
 
122
- 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.
123
 
124
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
125
 
126
  ---
127
 
128
- _Provenance: ingested 2026-06-07 via the Electric Sheep pipeline. Source URL: https://ourworldindata.org/grapher/solar-pv-energy-consumption-vs-solar-pv-capacity_
 
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
+ - "solar-pv-energy-consumption-vs-solar-pv-capacity"
22
+ - "owid"
23
+ - "long-run-series"
24
+ - "time-series"
25
+ - "solar"
26
+ pretty_name: "Solar Pv Energy Consumption Vs Solar Pv Capacity | Africa (Our World in Data) | Africa (Electric Sheep Africa metadata inventory)"
27
  ---
28
 
29
+ # Solar Pv Energy Consumption Vs Solar Pv Capacity | 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-7-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: Solar Pv Energy Consumption Vs Solar Pv Capacity | Africa (Our World in Data) 🌍 1,034 observations · 54 Africa countries · 1965–2024 · Repackaged by Electric Sheep Africa TL;DR This dataset contains 1,034 observations of Solar Pv Energy Consumption Vs Solar Pv Capacity data across 54 Africa countries, spanning 1965–2024. About the source Source: Our World in Data Publisher: Our World in Data License: cc-by-4.0 Topic: Solar Pv Energy… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-owid-solar-pv-energy-consumption-vs-solar-pv-capacity.
47
+
48
+ ## Dataset Profile
49
+
50
+ | Field | Value |
51
+ |---|---|
52
+ | Hugging Face repo | [`electricsheepafrica/africa-owid-solar-pv-energy-consumption-vs-solar-pv-capacity`](https://huggingface.co/datasets/electricsheepafrica/africa-owid-solar-pv-energy-consumption-vs-solar-pv-capacity) |
53
+ | Sector | energy |
54
+ | Topic tags | tabular, our-world-in-data, solar-pv-energy-consumption-vs-solar-pv-capacity, 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-07 03:45:16+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-solar-pv-energy-consumption-vs-solar-pv-capacity")
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-solar-pv-energy-consumption-vs-solar-pv-capacity](https://huggingface.co/datasets/electricsheepafrica/africa-owid-solar-pv-energy-consumption-vs-solar-pv-capacity)
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_solar_pv_energy_consumption_vs_solar_pv_capacity_2026,
121
+ title = {Solar Pv Energy Consumption Vs Solar Pv Capacity | 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-solar-pv-energy-consumption-vs-solar-pv-capacity},
125
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
126
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-owid-solar-pv-energy-consumption-vs-solar-pv-capacity}}
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`.