Olaroti commited on
Commit
f24064b
·
verified ·
1 Parent(s): 0383f61

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +129 -68
README.md CHANGED
@@ -5,86 +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
- - xlsx
14
- - africa
15
- - mauritius
16
- - official-statistics
17
- - open-data
18
- - energy
 
 
 
19
  configs:
20
  - config_name: default
21
  data_files:
22
  - split: train
23
  path: data/train-00000-of-00001.parquet
24
- pretty_name: "Sales of Electricity by Type of Tariff Group in Mauritius | Africa (Mauritius official open data)"
25
  ---
26
 
27
- # Sales of Electricity by Type of Tariff Group in Mauritius | Africa (Mauritius official open data)
28
 
29
- 750 rows - 1 Africa country - 1990-2019 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
30
 
31
  ![rows](https://img.shields.io/badge/rows-750-blue)
32
  ![countries](https://img.shields.io/badge/countries-1-green)
33
- ![years](https://img.shields.io/badge/years-1990-2019-orange)
34
  ![indicators](https://img.shields.io/badge/indicators-1-purple)
35
- ![license](https://img.shields.io/badge/license-cc-by-sa-4.0-lightgrey)
36
 
37
  ## TL;DR
38
 
39
- This dataset packages one official `XLSX` resource from **Mauritius** as
40
- ML-ready Parquet. The source file is the provenance boundary; all usable
41
- indicators or tabular columns from the resource stay together in this repo.
42
 
43
- ## About the source
44
 
45
- - **Source:** [Sales of Electricity by Type of Tariff Group in Mauritius](https://data.govmu.org/dataset/sales-electricity-type-tariff-group-mauritius)
46
- - **Publisher:** MDPA
47
- - **Resource:** [Source-Sales-of-Electricity-by-Type-of-Tariff-Group-for-the-year-1990-2019.xlsx](https://data.govmu.org/dataset/81555bf5-8418-4c3e-9e6e-588f86f3ddcd/resource/ab03aff6-8af3-40d3-a721-f6944633641b/download/source-sales-of-electricity-by-type-of-tariff-group-for-the-year-1990-2019.xlsx)
48
- - **Format:** `XLSX`
49
- - **License:** [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)
50
- - **Packaging mode:** `indicator_long`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
 
52
- ## Geographic coverage
53
 
54
- 1 Africa country:
55
 
56
- | Country | Rows | First year | Last year | Name |
57
- |---------|-----:|-----------:|----------:|------|
58
  | `MU` | 750 | 1990 | 2019 | `Mauritius` |
59
 
60
- ## Indicators or Resource Contents
61
 
62
- - `sales-of-electricity-by-type-of-tariff-group-in-mauritius-cd104b94` - Sales of Electricity by Type of Tariff Group in Mauritius
63
 
64
  ## Schema
65
 
66
  | Column | Type | Description | Example |
67
  |--------|------|-------------|---------|
68
- | `indicator_id` | `string` | Stable indicator identifier. | `sales-of-electricity-by-type-of-tariff-group-in-mauritius-cd104b94` |
69
  | `indicator_name` | `string` | Human-readable indicator name. | `Sales of Electricity by Type of Tariff Group in Mauritius` |
70
- | `country_iso3` | `string` | ISO3 country code. | `MU` |
71
- | `source_sheet` | `string` | Workbook sheet name, when the source is a spreadsheet. | `T10` |
72
- | `country_name` | `string` | Country name. | `Mauritius` |
73
- | `year` | `Int64` | Observation year. | `1990` |
74
- | `value` | `float64` | Numeric observation value. | `201878.0` |
75
- | `unit` | `string` | Measurement unit, when available. | `source_units_unspecified` |
76
- | `dimension_tariff_group` | `string` | Source dimension. | `Domestic` |
77
- | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `1990` |
78
- | `source_period_end_year` | `Int64` | Last year inferred from source resource metadata. | `2019` |
79
- | `source_period_label` | `category` | Human-readable period inferred from source resource metadata. | `1990-2019` |
80
- | `source_provider` | `category` | Publishing organization. | `MDPA` |
81
- | `source_dataset` | `category` | Source package title. | `Sales of Electricity by Type of Tariff Group in Mauritius` |
82
- | `source_resource` | `category` | Source resource title. | `Source-Sales-of-Electricity-by-Type-of-Tariff-Group-for-the-year-1990-20` |
83
- | `source_package_id` | `category` | CKAN package UUID. | `81555bf5-8418-4c3e-9e6e-588f86f3ddcd` |
84
- | `source_resource_id` | `category` | CKAN resource UUID. | `ab03aff6-8af3-40d3-a721-f6944633641b` |
85
- | `source_url` | `category` | Original source resource URL. | `https://data.govmu.org/dataset/81555bf5-8418-4c3e-9e6e-588f86f3ddcd/reso` |
86
- | `license_id` | `category` | Source license identifier. | `CC-BY-SA-4.0` |
87
- | `retrieved_at` | `category` | UTC retrieval timestamp. | `2026-08-08T16:26:20Z` |
88
 
89
  ## Usage
90
 
@@ -96,29 +114,78 @@ df = ds["train"].to_pandas()
96
  print(df.head())
97
  ```
98
 
99
- ### Filter to one country
100
 
101
  ```python
102
- sample_country = df[df["country_iso3"] == "MU"]
 
103
  ```
104
 
105
- ### Work with indicators
106
 
107
  ```python
108
- if "indicator_id" in df.columns:
109
- print(df["indicator_id"].value_counts().head())
110
- sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
111
  ```
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  ## Citation
114
 
115
  ```bibtex
116
  @misc{electric_sheep_africa_africa_mauritius_sales_of_electricity_by_type_of_tariff_group_in_mauritius_cd104_2019,
117
- title = {Sales of Electricity by Type of Tariff Group in Mauritius | Africa (Mauritius official open data)},
118
  author = {MDPA},
119
  year = {2019},
120
  url = {https://data.govmu.org/dataset/sales-electricity-type-tariff-group-mauritius},
121
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
122
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-sales-of-electricity-by-type-of-tariff-group-in-mauritius-cd104b94}}
123
  }
124
  ```
@@ -127,20 +194,14 @@ if "indicator_id" in df.columns:
127
 
128
  Released under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/).
129
 
130
- Original data (c) MDPA. When using this dataset, please cite both the
131
- original source above and the Electric Sheep Africa repackaging.
132
-
133
- ## About Electric Sheep
134
 
135
- Electric Sheep Africa is part of the Electric Sheep mission: a unified,
136
- ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
137
- open sources, normalize the schemas, package as Parquet, and publish with
138
- consistent dataset cards so researchers and developers can use `load_dataset()`
139
- to start working in seconds.
140
 
141
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
142
 
143
  ---
144
 
145
- Provenance: ingested 2026-08-08 via the Electric Sheep pipeline. Source URL:
146
- https://data.govmu.org/dataset/81555bf5-8418-4c3e-9e6e-588f86f3ddcd/resource/ab03aff6-8af3-40d3-a721-f6944633641b/download/source-sales-of-electricity-by-type-of-tariff-group-for-the-year-1990-2019.xlsx
 
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
+ - "commercial"
21
+ - "domestic"
22
  configs:
23
  - config_name: default
24
  data_files:
25
  - split: train
26
  path: data/train-00000-of-00001.parquet
27
+ pretty_name: "Sales of Electricity by Type of Tariff Group in Mauritius | Africa (MDPA)"
28
  ---
29
 
30
+ # Sales of Electricity by Type of Tariff Group in Mauritius | Africa (MDPA)
31
 
32
+ **750 rows** - **1 Africa country/area** - **1990-2019** - **1 indicator** - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
33
 
34
  ![rows](https://img.shields.io/badge/rows-750-blue)
35
  ![countries](https://img.shields.io/badge/countries-1-green)
36
+ ![period](https://img.shields.io/badge/period-1990--2019-orange)
37
  ![indicators](https://img.shields.io/badge/indicators-1-purple)
38
+ ![license](https://img.shields.io/badge/license-cc--by--sa--4.0-lightgrey)
39
 
40
  ## TL;DR
41
 
42
+ This dataset contains **750 rows** from **MDPA**, covering **Sales of Electricity by Type of Tariff Group in Mauritius**. It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading examples.
 
 
43
 
44
+ ## What This Dataset Measures
45
 
46
+ Energy datasets help analysts study supply, demand, prices, generation, access, and the infrastructure behind economic activity.
47
+
48
+ Source-provided context: Sales of Electricity by Type of Tariff Group for the year 1990 to 2019 in Mauritius
49
+
50
+ ## How To Read This Dataset
51
+
52
+ - **One row means:** one indicator observation for one geography, time period, and optional source dimensions.
53
+ - **Primary geography column:** `country_iso3`.
54
+ - **Best time column:** `year`.
55
+ - **Time coverage basis:** year.
56
+ - **Recommended join keys:** `country_iso3`, `year`, `indicator_id`.
57
+
58
+ ## Coverage
59
+
60
+ | Dimension | Value |
61
+ |---|---:|
62
+ | Rows | 750 |
63
+ | Countries/areas | 1 |
64
+ | First period | 1990 |
65
+ | Last period | 2019 |
66
+ | Indicators | 1 |
67
+ | Columns | 20 |
68
+ | Source format | XLSX |
69
 
70
+ ## Geographic Coverage
71
 
72
+ Top areas shown below, sorted by row count when available:
73
 
74
+ | Area | Rows | First year | Last year | Name |
75
+ |------|-----:|-----------:|----------:|------|
76
  | `MU` | 750 | 1990 | 2019 | `Mauritius` |
77
 
78
+ ## Indicators, Variables, Or Resource Contents
79
 
80
+ - `sales-of-electricity-by-type-of-tariff-group-in-mauritius-cd104b94` - Sales of Electricity by Type of Tariff Group in Mauritius(source_units_unspecified)
81
 
82
  ## Schema
83
 
84
  | Column | Type | Description | Example |
85
  |--------|------|-------------|---------|
86
+ | `indicator_id` | `string` | Stable source or Electric Sheep Africa indicator identifier. | `sales-of-electricity-by-type-of-tariff-group-in-mauritius-cd104b94` |
87
  | `indicator_name` | `string` | Human-readable indicator name. | `Sales of Electricity by Type of Tariff Group in Mauritius` |
88
+ | `country_iso3` | `string` | ISO3 country or area code. | `MU` |
89
+ | `source_sheet` | `string` | Source column from the original resource. | `T10` |
90
+ | `country_name` | `string` | Country or area name. | `Mauritius` |
91
+ | `year` | `int64` | Observation year. | `1990` |
92
+ | `value` | `double` | Numeric observation value. | `201878.0` |
93
+ | `unit` | `string` | Measurement unit, when supplied by the source. | `source_units_unspecified` |
94
+ | `dimension_tariff_group` | `string` | Source dimension retained during long-form normalization. | `Domestic` |
95
+ | `source_period_start_year` | `int64` | Start year inferred from source metadata. | `1990` |
96
+ | `source_period_end_year` | `int64` | End year inferred from source metadata. | `2019` |
97
+ | `source_period_label` | `dictionary<values=string, indices=int8, ordered=0>` | Source column from the original resource. | `1990-2019` |
98
+ | `source_provider` | `dictionary<values=string, indices=int8, ordered=0>` | Publishing organization. | `MDPA` |
99
+ | `source_dataset` | `dictionary<values=string, indices=int8, ordered=0>` | Source dataset or package title. | `Sales of Electricity by Type of Tariff Group in Mauritius` |
100
+ | `source_resource` | `dictionary<values=string, indices=int8, ordered=0>` | Source resource title, table name, or file name. | `Source-Sales-of-Electricity-by-Type-of-Tariff-Group-for-the-year-1990...` |
101
+ | `source_package_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source package identifier. | `81555bf5-8418-4c3e-9e6e-588f86f3ddcd` |
102
+ | `source_resource_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source resource identifier. | `ab03aff6-8af3-40d3-a721-f6944633641b` |
103
+ | `source_url` | `dictionary<values=string, indices=int8, ordered=0>` | Original source URL or download URL. | `https://data.govmu.org/dataset/81555bf5-8418-4c3e-9e6e-588f86f3ddcd/r...` |
104
+ | `license_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source license identifier. | `CC-BY-SA-4.0` |
105
+ | `retrieved_at` | `dictionary<values=string, indices=int8, ordered=0>` | UTC source retrieval timestamp from the Electric Sheep Africa pipeline. | `2026-08-08T16:26:20Z` |
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"] == "MU"]
 
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/sales-electricity-type-tariff-group-mauritius)
156
+ - **Publisher:** MDPA
157
+ - **Portal:** [https://data.govmu.org](https://data.govmu.org)
158
+ - **Resource:** [Source-Sales-of-Electricity-by-Type-of-Tariff-Group-for-the-year-1990-2019.xlsx](https://data.govmu.org/dataset/81555bf5-8418-4c3e-9e6e-588f86f3ddcd/resource/ab03aff6-8af3-40d3-a721-f6944633641b/download/source-sales-of-electricity-by-type-of-tariff-group-for-the-year-1990-2019.xlsx)
159
+ - **License:** [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)
160
+ - **Retrieved/generated:** `2026-08-08T17:11:31Z`
161
+ - **Hugging Face repo:** [electricsheepafrica/africa-mauritius-sales-of-electricity-by-type-of-tariff-group-in-mauritius-cd104b94](https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-sales-of-electricity-by-type-of-tariff-group-in-mauritius-cd104b94)
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
+ - Track supply or price trends
173
+ - Compare energy sources
174
+ - Join with population, industry, or emissions 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_sales_of_electricity_by_type_of_tariff_group_in_mauritius_cd104_2019,
184
+ title = {Sales of Electricity by Type of Tariff Group in Mauritius | Africa (MDPA)},
185
  author = {MDPA},
186
  year = {2019},
187
  url = {https://data.govmu.org/dataset/sales-electricity-type-tariff-group-mauritius},
188
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
189
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-sales-of-electricity-by-type-of-tariff-group-in-mauritius-cd104b94}}
190
  }
191
  ```
 
194
 
195
  Released under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/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/sales-electricity-type-tariff-group-mauritius