Olaroti commited on
Commit
998c3ff
·
verified ·
1 Parent(s): 7f74a5a

Standardize Electric Sheep Africa dataset card

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