Standardize Electric Sheep Africa dataset card
Browse files
README.md
CHANGED
|
@@ -5,100 +5,122 @@ language:
|
|
| 5 |
task_categories:
|
| 6 |
- tabular-classification
|
| 7 |
- tabular-regression
|
| 8 |
-
multilinguality:
|
| 9 |
size_categories:
|
| 10 |
- n<1K
|
| 11 |
tags:
|
| 12 |
-
- tabular
|
| 13 |
-
-
|
| 14 |
-
-
|
| 15 |
-
-
|
| 16 |
-
-
|
| 17 |
-
-
|
| 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
|
| 25 |
---
|
| 26 |
|
| 27 |
-
# Sales of
|
| 28 |
|
| 29 |
-
163 rows - 1 Africa country - 2017-2021 -
|
| 30 |
|
| 31 |

|
| 32 |

|
| 33 |
-

|
| 35 |
-

|
| 36 |
|
| 37 |
## TL;DR
|
| 38 |
|
| 39 |
-
This dataset
|
| 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 |
-
##
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
-
## Geographic
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
-
|
|
| 57 |
-
|------
|
| 58 |
| `MU` | 163 | 2017 | 2021 | `Mauritius` |
|
| 59 |
|
| 60 |
-
## Indicators
|
| 61 |
|
| 62 |
-
- This source
|
| 63 |
|
| 64 |
## Schema
|
| 65 |
|
| 66 |
| Column | Type | Description | Example |
|
| 67 |
|--------|------|-------------|---------|
|
| 68 |
-
| `source_record_id` | `string` | Stable row identifier
|
| 69 |
-
| `country_iso3` | `
|
| 70 |
-
| `country_name` | `
|
| 71 |
-
| `source_sheet` | `string` |
|
| 72 |
-
| `column` | `string` | Source column. | `N.A : Not available` |
|
| 73 |
-
| `not_applicable_or_nil` | `string` | Source column. | `` |
|
| 74 |
-
| `source_period_start_year` | `
|
| 75 |
-
| `source_period_end_year` | `
|
| 76 |
-
| `source_period_label` | `
|
| 77 |
-
| `source_provider` | `
|
| 78 |
-
| `source_dataset` | `
|
| 79 |
-
| `source_resource` | `
|
| 80 |
-
| `source_package_id` | `
|
| 81 |
-
| `source_resource_id` | `
|
| 82 |
-
| `source_url` | `
|
| 83 |
-
| `license_id` | `
|
| 84 |
-
| `retrieved_at` | `
|
| 85 |
-
| `d_1_mining_and_quarrying` | `string` | Source column. | `` |
|
| 86 |
-
| `the_activity_of_mining_and_quarrying_comprises_activitie` | `string` | Source column. | `` |
|
| 87 |
-
| `productivity_and_unit_labour_cost_indices` | `string` | Source column. | `` |
|
| 88 |
-
| `introduction` | `string` | Source column. | `` |
|
| 89 |
-
| `d_1_coverage` | `string` | Source column. | `` |
|
| 90 |
-
| `the_industrial_sector_according_to_the_international_rec` | `string` | Source column. | `` |
|
| 91 |
-
| `2017` | `string` | Source column. | `` |
|
| 92 |
-
| `d_872_698676` | `
|
| 93 |
-
| `d_420876` | `
|
| 94 |
-
| `d_951_9582607637849` | `
|
| 95 |
-
| `d_42761` | `
|
| 96 |
-
| `d_755_253732` | `
|
| 97 |
-
| `d_6353` | `
|
| 98 |
-
| `d_38_212101636206356` | `
|
| 99 |
-
| `d_676` | `
|
| 100 |
-
| `d_2618_122770399991` | `
|
| 101 |
-
| `d_470666` | `
|
| 102 |
|
| 103 |
## Usage
|
| 104 |
|
|
@@ -110,29 +132,76 @@ df = ds["train"].to_pandas()
|
|
| 110 |
print(df.head())
|
| 111 |
```
|
| 112 |
|
| 113 |
-
###
|
| 114 |
|
| 115 |
```python
|
| 116 |
-
|
|
|
|
| 117 |
```
|
| 118 |
|
| 119 |
-
###
|
| 120 |
|
| 121 |
```python
|
| 122 |
-
if "
|
| 123 |
-
|
| 124 |
-
sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
|
| 125 |
```
|
| 126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
## Citation
|
| 128 |
|
| 129 |
```bibtex
|
| 130 |
@misc{electric_sheep_africa_africa_mauritius_sales_of_electricity_by_type_of_tariff_fc65bded_2021,
|
| 131 |
-
title = {Sales of
|
| 132 |
author = {MDPA},
|
| 133 |
year = {2021},
|
| 134 |
url = {https://data.govmu.org/dataset/sales-electricity-type-tariff},
|
| 135 |
-
publisher = {
|
| 136 |
howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-sales-of-electricity-by-type-of-tariff-fc65bded}}
|
| 137 |
}
|
| 138 |
```
|
|
@@ -141,20 +210,14 @@ if "indicator_id" in df.columns:
|
|
| 141 |
|
| 142 |
Released under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/).
|
| 143 |
|
| 144 |
-
Original data
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
## About Electric Sheep
|
| 148 |
|
| 149 |
-
|
| 150 |
-
ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
|
| 151 |
-
open sources, normalize the schemas, package as Parquet, and publish with
|
| 152 |
-
consistent dataset cards so researchers and developers can use `load_dataset()`
|
| 153 |
-
to start working in seconds.
|
| 154 |
|
| 155 |
-
|
| 156 |
|
| 157 |
---
|
| 158 |
|
| 159 |
-
Provenance:
|
| 160 |
-
https://data.govmu.org/dataset/89d7ecdc-fff6-4dce-a4a0-7edcc597b5c7/resource/e754caf8-029f-4b07-bd14-9265052c8860/download/digest_industrial_stats_yr21_281022_sourcefile.xlsx
|
|
|
|
| 5 |
task_categories:
|
| 6 |
- tabular-classification
|
| 7 |
- tabular-regression
|
| 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 |
+
- "ceb"
|
| 23 |
+
- "gwh"
|
| 24 |
+
- "industrial"
|
| 25 |
+
- "tarrif"
|
| 26 |
configs:
|
| 27 |
- config_name: default
|
| 28 |
data_files:
|
| 29 |
- split: train
|
| 30 |
path: data/train-00000-of-00001.parquet
|
| 31 |
+
pretty_name: "Sales of Electricity by Type of Tariff | Africa (MDPA)"
|
| 32 |
---
|
| 33 |
|
| 34 |
+
# Sales of Electricity by Type of Tariff | Africa (MDPA)
|
| 35 |
|
| 36 |
+
**163 rows** - **1 Africa country/area** - **2017-2021** - **source table** - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
|
| 37 |
|
| 38 |

|
| 39 |

|
| 40 |
+

|
| 41 |

|
| 42 |
+

|
| 43 |
|
| 44 |
## TL;DR
|
| 45 |
|
| 46 |
+
This dataset contains **163 rows** from **MDPA**, covering **Sales of Electricity by Type of Tariff**. It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading examples.
|
|
|
|
|
|
|
| 47 |
|
| 48 |
+
## What This Dataset Measures
|
| 49 |
|
| 50 |
+
Energy datasets help analysts study supply, demand, prices, generation, access, and the infrastructure behind economic activity.
|
| 51 |
+
|
| 52 |
+
Source-provided context: Data shows electricity sold by type of tariff for the year 2017 to 2021
|
| 53 |
+
|
| 54 |
+
## How To Read This Dataset
|
| 55 |
+
|
| 56 |
+
- **One row means:** one source record from the original tabular resource, with Electric Sheep Africa provenance columns added where available.
|
| 57 |
+
- **Primary geography column:** `country_iso3`.
|
| 58 |
+
- **Best time column:** `not detected`.
|
| 59 |
+
- **Time coverage basis:** source metadata.
|
| 60 |
+
- **Recommended join keys:** `country_iso3` where available plus source-specific keys.
|
| 61 |
+
|
| 62 |
+
## Coverage
|
| 63 |
+
|
| 64 |
+
| Dimension | Value |
|
| 65 |
+
|---|---:|
|
| 66 |
+
| Rows | 163 |
|
| 67 |
+
| Countries/areas | 1 |
|
| 68 |
+
| First period | 2017 |
|
| 69 |
+
| Last period | 2021 |
|
| 70 |
+
| Indicators | 0 |
|
| 71 |
+
| Columns | 34 |
|
| 72 |
+
| Source format | XLSX |
|
| 73 |
|
| 74 |
+
## Geographic Coverage
|
| 75 |
|
| 76 |
+
Top areas shown below, sorted by row count when available:
|
| 77 |
|
| 78 |
+
| Area | Rows | First year | Last year | Name |
|
| 79 |
+
|------|-----:|-----------:|----------:|------|
|
| 80 |
| `MU` | 163 | 2017 | 2021 | `Mauritius` |
|
| 81 |
|
| 82 |
+
## Indicators, Variables, Or Resource Contents
|
| 83 |
|
| 84 |
+
- This repo preserves one source tabular resource with its usable columns kept together.
|
| 85 |
|
| 86 |
## Schema
|
| 87 |
|
| 88 |
| Column | Type | Description | Example |
|
| 89 |
|--------|------|-------------|---------|
|
| 90 |
+
| `source_record_id` | `string` | Stable row identifier assigned during Electric Sheep Africa engineering. | `e754caf8-029f-4b07-bd14-9265052c8860:symbols-abbreviation-acronym:0` |
|
| 91 |
+
| `country_iso3` | `dictionary<values=string, indices=int8, ordered=0>` | ISO3 country or area code. | `MU` |
|
| 92 |
+
| `country_name` | `dictionary<values=string, indices=int8, ordered=0>` | Country or area name. | `Mauritius` |
|
| 93 |
+
| `source_sheet` | `string` | Source column from the original resource. | `Symbols, Abbreviation & Acronym` |
|
| 94 |
+
| `column` | `string` | Source column from the original resource. | `N.A : Not available` |
|
| 95 |
+
| `not_applicable_or_nil` | `string` | Source column from the original resource. | `` |
|
| 96 |
+
| `source_period_start_year` | `int64` | Start year inferred from source metadata. | `2017` |
|
| 97 |
+
| `source_period_end_year` | `int64` | End year inferred from source metadata. | `2021` |
|
| 98 |
+
| `source_period_label` | `dictionary<values=string, indices=int8, ordered=0>` | Source column from the original resource. | `2017-2021` |
|
| 99 |
+
| `source_provider` | `dictionary<values=string, indices=int8, ordered=0>` | Publishing organization. | `MDPA` |
|
| 100 |
+
| `source_dataset` | `dictionary<values=string, indices=int8, ordered=0>` | Source dataset or package title. | `Sales of electricity by type of tariff` |
|
| 101 |
+
| `source_resource` | `dictionary<values=string, indices=int8, ordered=0>` | Source resource title, table name, or file name. | `Digest_Industrial_Stats_Yr21_281022_sourceFile.xlsx` |
|
| 102 |
+
| `source_package_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source package identifier. | `89d7ecdc-fff6-4dce-a4a0-7edcc597b5c7` |
|
| 103 |
+
| `source_resource_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source resource identifier. | `e754caf8-029f-4b07-bd14-9265052c8860` |
|
| 104 |
+
| `source_url` | `dictionary<values=string, indices=int8, ordered=0>` | Original source URL or download URL. | `https://data.govmu.org/dataset/89d7ecdc-fff6-4dce-a4a0-7edcc597b5c7/r...` |
|
| 105 |
+
| `license_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source license identifier. | `CC-BY-SA-4.0` |
|
| 106 |
+
| `retrieved_at` | `dictionary<values=string, indices=int8, ordered=0>` | UTC source retrieval timestamp from the Electric Sheep Africa pipeline. | `2026-08-08T16:26:20Z` |
|
| 107 |
+
| `d_1_mining_and_quarrying` | `string` | Source column from the original resource. | `` |
|
| 108 |
+
| `the_activity_of_mining_and_quarrying_comprises_activitie` | `string` | Source column from the original resource. | `` |
|
| 109 |
+
| `productivity_and_unit_labour_cost_indices` | `string` | Source column from the original resource. | `` |
|
| 110 |
+
| `introduction` | `string` | Source column from the original resource. | `` |
|
| 111 |
+
| `d_1_coverage` | `string` | Source column from the original resource. | `` |
|
| 112 |
+
| `the_industrial_sector_according_to_the_international_rec` | `string` | Source column from the original resource. | `` |
|
| 113 |
+
| `2017` | `string` | Source column from the original resource. | `` |
|
| 114 |
+
| `d_872_698676` | `double` | Source column from the original resource. | `` |
|
| 115 |
+
| `d_420876` | `double` | Source column from the original resource. | `` |
|
| 116 |
+
| `d_951_9582607637849` | `double` | Source column from the original resource. | `` |
|
| 117 |
+
| `d_42761` | `double` | Source column from the original resource. | `` |
|
| 118 |
+
| `d_755_253732` | `double` | Source column from the original resource. | `` |
|
| 119 |
+
| `d_6353` | `double` | Source column from the original resource. | `` |
|
| 120 |
+
| `d_38_212101636206356` | `double` | Source column from the original resource. | `` |
|
| 121 |
+
| `d_676` | `double` | Source column from the original resource. | `` |
|
| 122 |
+
| `d_2618_122770399991` | `double` | Source column from the original resource. | `` |
|
| 123 |
+
| `d_470666` | `double` | Source column from the original resource. | `` |
|
| 124 |
|
| 125 |
## Usage
|
| 126 |
|
|
|
|
| 132 |
print(df.head())
|
| 133 |
```
|
| 134 |
|
| 135 |
+
### Inspect Columns
|
| 136 |
|
| 137 |
```python
|
| 138 |
+
print(df.info())
|
| 139 |
+
print(df.head())
|
| 140 |
```
|
| 141 |
|
| 142 |
+
### Filter By Geography
|
| 143 |
|
| 144 |
```python
|
| 145 |
+
if "country_iso3" in df.columns:
|
| 146 |
+
sample = df[df["country_iso3"] == "MU"]
|
|
|
|
| 147 |
```
|
| 148 |
|
| 149 |
+
### Time-Series Pattern
|
| 150 |
+
|
| 151 |
+
```python
|
| 152 |
+
if "value" in df.columns and "year" in df.columns:
|
| 153 |
+
trend = df.sort_values("year")
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
### Pivot For Analysis
|
| 157 |
+
|
| 158 |
+
```python
|
| 159 |
+
if {"indicator_id", "year", "value"}.issubset(df.columns):
|
| 160 |
+
matrix = df.pivot_table(index="year", columns="indicator_id", values="value")
|
| 161 |
+
print(matrix.tail())
|
| 162 |
+
```
|
| 163 |
+
|
| 164 |
+
## Data Quality Notes
|
| 165 |
+
|
| 166 |
+
- No canonical year/date column was detected in the packaged table; use source metadata and domain context for temporal interpretation.
|
| 167 |
+
- Missing values are preserved rather than silently imputed.
|
| 168 |
+
- Column names are standardized for machine use; source meanings are preserved where known.
|
| 169 |
+
- Always confirm source methodology, units, and collection definitions before policy, production, or redistribution-sensitive use.
|
| 170 |
+
|
| 171 |
+
## Source And Provenance
|
| 172 |
+
|
| 173 |
+
- **Source:** [MDPA](https://data.govmu.org/dataset/sales-electricity-type-tariff)
|
| 174 |
+
- **Publisher:** MDPA
|
| 175 |
+
- **Portal:** [https://data.govmu.org](https://data.govmu.org)
|
| 176 |
+
- **Resource:** [Digest_Industrial_Stats_Yr21_281022_sourceFile.xlsx](https://data.govmu.org/dataset/89d7ecdc-fff6-4dce-a4a0-7edcc597b5c7/resource/e754caf8-029f-4b07-bd14-9265052c8860/download/digest_industrial_stats_yr21_281022_sourcefile.xlsx)
|
| 177 |
+
- **License:** [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)
|
| 178 |
+
- **Retrieved/generated:** `2026-08-08T16:33:00Z`
|
| 179 |
+
- **Hugging Face repo:** [electricsheepafrica/africa-mauritius-sales-of-electricity-by-type-of-tariff-fc65bded](https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-sales-of-electricity-by-type-of-tariff-fc65bded)
|
| 180 |
+
|
| 181 |
+
## Transformations Applied
|
| 182 |
+
|
| 183 |
+
- Converted the source table to Parquet for efficient analytics and ML workflows.
|
| 184 |
+
- Added or preserved source provenance columns where available.
|
| 185 |
+
- Standardized README metadata, dataset loading configuration, schema documentation, and citation format.
|
| 186 |
+
- Preserved source-reported values without analytical imputation.
|
| 187 |
+
|
| 188 |
+
## Suggested Analyses
|
| 189 |
+
|
| 190 |
+
- Track supply or price trends
|
| 191 |
+
- Compare energy sources
|
| 192 |
+
- Join with population, industry, or emissions data
|
| 193 |
+
- Check missingness before modeling
|
| 194 |
+
- Use `country_iso3` as the safest geography join key when present
|
| 195 |
+
|
| 196 |
## Citation
|
| 197 |
|
| 198 |
```bibtex
|
| 199 |
@misc{electric_sheep_africa_africa_mauritius_sales_of_electricity_by_type_of_tariff_fc65bded_2021,
|
| 200 |
+
title = {Sales of Electricity by Type of Tariff | Africa (MDPA)},
|
| 201 |
author = {MDPA},
|
| 202 |
year = {2021},
|
| 203 |
url = {https://data.govmu.org/dataset/sales-electricity-type-tariff},
|
| 204 |
+
publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
|
| 205 |
howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-sales-of-electricity-by-type-of-tariff-fc65bded}}
|
| 206 |
}
|
| 207 |
```
|
|
|
|
| 210 |
|
| 211 |
Released under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/).
|
| 212 |
|
| 213 |
+
Original data is published by MDPA. Electric Sheep Africa
|
| 214 |
+
engineering standardizes the data for discovery, loading, and analysis on
|
| 215 |
+
Hugging Face. Cite both the original source and this ML-ready dataset when used.
|
|
|
|
| 216 |
|
| 217 |
+
## About Electric Sheep Africa
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
|
| 219 |
+
Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
|
| 220 |
|
| 221 |
---
|
| 222 |
|
| 223 |
+
Provenance: README standardized 2026-08-11 by the Electric Sheep Africa README system. Source URL: https://data.govmu.org/dataset/sales-electricity-type-tariff
|
|
|