Olaroti commited on
Commit
b5eb663
·
verified ·
1 Parent(s): 06b24c1

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +123 -66
README.md CHANGED
@@ -5,79 +5,101 @@ language:
5
  task_categories:
6
  - tabular-regression
7
  - time-series-forecasting
8
- multilinguality: monolingual
9
  size_categories:
10
  - n<1K
11
  tags:
12
  - tabular
13
  - africa
14
- - mauritius
15
- - official-statistics
16
  - open-data
17
- - time-series
 
 
18
  - energy
19
- pretty_name: "Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage of Annual Change | Africa (Mauritius official open data)"
 
 
 
 
 
 
 
 
 
 
20
  ---
21
 
22
- # Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage of Annual Change | Africa (Mauritius official open data)
23
 
24
- 7 observations - 1 Africa country - 2018-2024 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
25
 
26
  ![rows](https://img.shields.io/badge/rows-7-blue)
27
  ![countries](https://img.shields.io/badge/countries-1-green)
28
- ![years](https://img.shields.io/badge/years-2018-2024-orange)
29
  ![indicators](https://img.shields.io/badge/indicators-1-purple)
30
- ![license](https://img.shields.io/badge/license-cc-by-4.0-lightgrey)
31
 
32
  ## TL;DR
33
 
34
- This dataset contains **7 observations** of `Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage of Annual Change` data for
35
- **Mauritius**, spanning **2018-2024**, normalized from an official open
36
- data resource into ML-ready long-form Parquet.
37
 
38
- ## About the source
39
 
40
- - **Source:** [Main Energy indicators, Republic of Mauritius, 2018-2024](https://data.govmu.org/dataset/main-energy-indicators-republic-of-mauritius-2018-2024)
41
- - **Publisher:** MDPA
42
- - **Resource:** [main_energy_indicators-republic-of-mauritius-2018-2024v.csv](https://data.govmu.org/dataset/e398d0b3-75e4-424c-89cb-cb2caa281e94/resource/0f445a42-d734-4293-a8ff-724efff02c29/download/main_energy_indicators-republic-of-mauritius-2018-2024v.csv)
43
- - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
44
- - **Original value column:** `Percentage_of_Annual_Change`
45
 
46
- ## Geographic coverage
47
 
48
- 1 Africa country:
49
 
50
- | Country | Rows | First year | Last year | Name |
51
- |---------|-----:|-----------:|----------:|------|
52
- | `MUS` | 7 | 2018 | 2024 | `Mauritius` |
 
 
53
 
54
- ## Indicators
55
 
56
- - `main-energy-indicators-republic-of-mauritius-2018-2024-percentage-of-ann-bf50d484` - Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage of Annual Change
 
 
 
 
 
 
 
 
57
 
58
- ## Dimensions
59
 
60
- none
 
 
 
 
 
 
 
 
61
 
62
  ## Schema
63
 
64
  | Column | Type | Description | Example |
65
  |--------|------|-------------|---------|
66
- | `indicator_id` | `object` | Stable indicator slug. | `main-energy-indicators-republic-of-mauritius-2018-2024-percentage-of-ann` |
67
- | `indicator_name` | `object` | Human-readable indicator name. | `Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage of` |
68
- | `country_iso3` | `object` | ISO3 country code. | `MUS` |
69
- | `country_name` | `object` | Country name. | `Mauritius` |
70
- | `year` | `Int64` | Observation year. | `2018` |
71
- | `value` | `float64` | Numeric observation value. | `-0.8` |
72
- | `unit` | `object` | Measurement unit, when available. | `source_units_unspecified` |
73
- | `source_provider` | `object` | Publishing organization. | `MDPA` |
74
- | `source_dataset` | `object` | Source package title. | `Main Energy indicators, Republic of Mauritius, 2018-2024` |
75
- | `source_resource` | `object` | Source resource title. | `main_energy_indicators-republic-of-mauritius-2018-2024v.csv` |
76
- | `source_package_id` | `object` | - | `e398d0b3-75e4-424c-89cb-cb2caa281e94` |
77
- | `source_resource_id` | `object` | - | `0f445a42-d734-4293-a8ff-724efff02c29` |
78
- | `source_url` | `object` | Original resource URL. | `https://data.govmu.org/dataset/e398d0b3-75e4-424c-89cb-cb2caa281e94/reso` |
79
- | `license_id` | `object` | Source license identifier. | `cc-by` |
80
- | `retrieved_at` | `object` | UTC source retrieval timestamp. | `2026-07-16T18:12:36Z` |
81
 
82
  ## Usage
83
 
@@ -89,37 +111,78 @@ df = ds["train"].to_pandas()
89
  print(df.head())
90
  ```
91
 
92
- ### Filter to one country
93
 
94
  ```python
95
- sample_country = df[df["country_iso3"] == "MUS"]
 
96
  ```
97
 
98
- ### Time-series
99
 
100
  ```python
101
- sample = df.sort_values("year")
102
- sample.plot(x="year", y="value", title="main-energy-indicators-republic-of-mauritius-2018-2024-percentage-of-ann-bf50d484")
103
  ```
104
 
105
- ### Pivot by dimensions
106
 
107
  ```python
108
- dimension_cols = [c for c in df.columns if c.startswith("dimension_")]
109
- if dimension_cols:
110
- matrix = df.pivot_table(index="year", columns=dimension_cols, values="value")
 
 
 
 
 
 
111
  print(matrix.tail())
112
  ```
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  ## Citation
115
 
116
  ```bibtex
117
- @misc{electric_sheep_africa_africa_mauritius_main_energy_indicators_republic_of_mauritius_2018_2024_percentag_bf50d4_2024,
118
- title = {Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage of Annual Change | Africa (Mauritius official open data)},
119
  author = {MDPA},
120
  year = {2024},
121
  url = {https://data.govmu.org/dataset/main-energy-indicators-republic-of-mauritius-2018-2024},
122
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
123
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-main-energy-indicators-republic-of-mauritius-2018-2024-percentag-bf50d484}}
124
  }
125
  ```
@@ -128,20 +191,14 @@ if dimension_cols:
128
 
129
  Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
130
 
131
- Original data (c) MDPA. When using this dataset, please cite both the
132
- original source above and the Electric Sheep Africa repackaging.
133
-
134
- ## About Electric Sheep
135
 
136
- Electric Sheep Africa is part of the Electric Sheep mission: a unified,
137
- ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
138
- open sources, normalize the schemas, package as Parquet, and publish with
139
- consistent dataset cards so researchers and developers can use `load_dataset()`
140
- to start working in seconds.
141
 
142
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
143
 
144
  ---
145
 
146
- Provenance: ingested 2026-07-16 via the Electric Sheep pipeline. Source URL:
147
- https://data.govmu.org/dataset/e398d0b3-75e4-424c-89cb-cb2caa281e94/resource/0f445a42-d734-4293-a8ff-724efff02c29/download/main_energy_indicators-republic-of-mauritius-2018-2024v.csv
 
5
  task_categories:
6
  - tabular-regression
7
  - time-series-forecasting
8
+ multilinguality: multilingual
9
  size_categories:
10
  - n<1K
11
  tags:
12
  - tabular
13
  - africa
 
 
14
  - open-data
15
+ - official-statistics
16
+ - mauritius
17
+ - mdpa
18
  - energy
19
+ - environment-and-natural-resources
20
+ - consumption
21
+ - electricity
22
+ - generated
23
+ - renewable-energy
24
+ configs:
25
+ - config_name: default
26
+ data_files:
27
+ - split: train
28
+ path: data/train-00000-of-00001.parquet
29
+ pretty_name: "Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage of Annual Change | Africa (MDPA)"
30
  ---
31
 
32
+ # Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage of Annual Change | Africa (MDPA)
33
 
34
+ **7 rows** - **1 Africa country/area** - **2018-2024** - **1 indicator** - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
35
 
36
  ![rows](https://img.shields.io/badge/rows-7-blue)
37
  ![countries](https://img.shields.io/badge/countries-1-green)
38
+ ![period](https://img.shields.io/badge/period-2018--2024-orange)
39
  ![indicators](https://img.shields.io/badge/indicators-1-purple)
40
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
41
 
42
  ## TL;DR
43
 
44
+ This dataset contains **7 rows** from **MDPA**, covering **Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage of Annual Change**. It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading examples.
 
 
45
 
46
+ ## What This Dataset Measures
47
 
48
+ Energy datasets help analysts study supply, demand, prices, generation, access, and the infrastructure behind economic activity.
 
 
 
 
49
 
50
+ Source-provided context: Dataset shows the main Energy indicators, Republic of Mauritius, 2018 to 2024
51
 
52
+ ## How To Read This Dataset
53
 
54
+ - **One row means:** one indicator observation for one geography, time period, and optional source dimensions.
55
+ - **Primary geography column:** `country_iso3`.
56
+ - **Best time column:** `year`.
57
+ - **Time coverage basis:** year.
58
+ - **Recommended join keys:** `country_iso3`, `year`, `indicator_id`.
59
 
60
+ ## Coverage
61
 
62
+ | Dimension | Value |
63
+ |---|---:|
64
+ | Rows | 7 |
65
+ | Countries/areas | 1 |
66
+ | First period | 2018 |
67
+ | Last period | 2024 |
68
+ | Indicators | 1 |
69
+ | Columns | 15 |
70
+ | Source format | CSV |
71
 
72
+ ## Geographic Coverage
73
 
74
+ Top areas shown below, sorted by row count when available:
75
+
76
+ | Area | Rows | First year | Last year | Name |
77
+ |------|-----:|-----------:|----------:|------|
78
+ | `MUS` | 7 | 2018 | 2024 | `Mauritius` |
79
+
80
+ ## Indicators, Variables, Or Resource Contents
81
+
82
+ - `main-energy-indicators-republic-of-mauritius-2018-2024-percentage-of-ann-bf50d484` - Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage of Annual Change(source_units_unspecified)
83
 
84
  ## Schema
85
 
86
  | Column | Type | Description | Example |
87
  |--------|------|-------------|---------|
88
+ | `indicator_id` | `string` | Stable source or Electric Sheep Africa indicator identifier. | `main-energy-indicators-republic-of-mauritius-2018-2024-percentage-of-...` |
89
+ | `indicator_name` | `string` | Human-readable indicator name. | `Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage...` |
90
+ | `country_iso3` | `string` | ISO3 country or area code. | `MUS` |
91
+ | `country_name` | `string` | Country or area name. | `Mauritius` |
92
+ | `year` | `int64` | Observation year. | `2018` |
93
+ | `value` | `double` | Numeric observation value. | `-0.8` |
94
+ | `unit` | `string` | Measurement unit, when supplied by the source. | `source_units_unspecified` |
95
+ | `source_provider` | `string` | Publishing organization. | `MDPA` |
96
+ | `source_dataset` | `string` | Source dataset or package title. | `Main Energy indicators, Republic of Mauritius, 2018-2024` |
97
+ | `source_resource` | `string` | Source resource title, table name, or file name. | `main_energy_indicators-republic-of-mauritius-2018-2024v.csv` |
98
+ | `source_package_id` | `string` | Source package identifier. | `e398d0b3-75e4-424c-89cb-cb2caa281e94` |
99
+ | `source_resource_id` | `string` | Source resource identifier. | `0f445a42-d734-4293-a8ff-724efff02c29` |
100
+ | `source_url` | `string` | Original source URL or download URL. | `https://data.govmu.org/dataset/e398d0b3-75e4-424c-89cb-cb2caa281e94/r...` |
101
+ | `license_id` | `string` | Source license identifier. | `cc-by` |
102
+ | `retrieved_at` | `string` | UTC source retrieval timestamp from the Electric Sheep Africa pipeline. | `2026-07-16T18:12:36Z` |
103
 
104
  ## Usage
105
 
 
111
  print(df.head())
112
  ```
113
 
114
+ ### Inspect Columns
115
 
116
  ```python
117
+ print(df.info())
118
+ print(df.head())
119
  ```
120
 
121
+ ### Filter By Geography
122
 
123
  ```python
124
+ if "country_iso3" in df.columns:
125
+ sample = df[df["country_iso3"] == "MUS"]
126
  ```
127
 
128
+ ### Time-Series Pattern
129
 
130
  ```python
131
+ if "value" in df.columns and "year" in df.columns:
132
+ trend = df.sort_values("year")
133
+ ```
134
+
135
+ ### Pivot For Analysis
136
+
137
+ ```python
138
+ if {"indicator_id", "year", "value"}.issubset(df.columns):
139
+ matrix = df.pivot_table(index="year", columns="indicator_id", values="value")
140
  print(matrix.tail())
141
  ```
142
 
143
+ ## Data Quality Notes
144
+
145
+ - Canonical time field: `year`.
146
+ - Missing values are preserved rather than silently imputed.
147
+ - Column names are standardized for machine use; source meanings are preserved where known.
148
+ - Always confirm source methodology, units, and collection definitions before policy, production, or redistribution-sensitive use.
149
+
150
+ ## Source And Provenance
151
+
152
+ - **Source:** [MDPA](https://data.govmu.org/dataset/main-energy-indicators-republic-of-mauritius-2018-2024)
153
+ - **Publisher:** MDPA
154
+ - **Portal:** [https://data.govmu.org](https://data.govmu.org)
155
+ - **Resource:** [main_energy_indicators-republic-of-mauritius-2018-2024v.csv](https://data.govmu.org/dataset/e398d0b3-75e4-424c-89cb-cb2caa281e94/resource/0f445a42-d734-4293-a8ff-724efff02c29/download/main_energy_indicators-republic-of-mauritius-2018-2024v.csv)
156
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
157
+ - **Retrieved/generated:** `2026-07-16T18:12:45Z`
158
+ - **Hugging Face repo:** [electricsheepafrica/africa-mauritius-main-energy-indicators-republic-of-mauritius-2018-2024-percentag-bf50d484](https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-main-energy-indicators-republic-of-mauritius-2018-2024-percentag-bf50d484)
159
+
160
+ ## Transformations Applied
161
+
162
+ - Converted the source table to Parquet for efficient analytics and ML workflows.
163
+ - Added or preserved source provenance columns where available.
164
+ - Standardized README metadata, dataset loading configuration, schema documentation, and citation format.
165
+ - Preserved source-reported values without analytical imputation.
166
+
167
+ ## Suggested Analyses
168
+
169
+ - Track supply or price trends
170
+ - Compare energy sources
171
+ - Join with population, industry, or emissions data
172
+ - Build time-series views and period-over-period comparisons
173
+ - Pivot to geography x period or indicator x period matrices
174
+ - Check missingness before modeling
175
+ - Use `country_iso3` as the safest geography join key when present
176
+
177
  ## Citation
178
 
179
  ```bibtex
180
+ @misc{electric_sheep_africa_africa_mauritius_main_energy_indicators_republic_of_mauritius_2018_2024_percenta_2024,
181
+ title = {Main Energy indicators, Republic of Mauritius, 2018-2024 - Percentage of Annual Change | Africa (MDPA)},
182
  author = {MDPA},
183
  year = {2024},
184
  url = {https://data.govmu.org/dataset/main-energy-indicators-republic-of-mauritius-2018-2024},
185
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
186
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-main-energy-indicators-republic-of-mauritius-2018-2024-percentag-bf50d484}}
187
  }
188
  ```
 
191
 
192
  Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
193
 
194
+ Original data is published by MDPA. Electric Sheep Africa
195
+ engineering standardizes the data for discovery, loading, and analysis on
196
+ Hugging Face. Cite both the original source and this ML-ready dataset when used.
 
197
 
198
+ ## About Electric Sheep Africa
 
 
 
 
199
 
200
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
201
 
202
  ---
203
 
204
+ Provenance: README standardized 2026-08-11 by the Electric Sheep Africa README system. Source URL: https://data.govmu.org/dataset/main-energy-indicators-republic-of-mauritius-2018-2024