Olaroti commited on
Commit
0467bc1
·
verified ·
1 Parent(s): 7a8c39f

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +166 -103
README.md CHANGED
@@ -5,120 +5,142 @@ language:
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
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
  configs:
19
  - config_name: default
20
  data_files:
21
  - split: train
22
  path: data/train-00000-of-00001.parquet
23
- pretty_name: "Water sales by tariff of subscriber | Africa (Mauritius official open data)"
24
  ---
25
 
26
- # Water sales by tariff of subscriber | Africa (Mauritius official open data)
27
 
28
- 28 rows - 1 Africa country - 2016-2022 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
29
 
30
  ![rows](https://img.shields.io/badge/rows-28-blue)
31
  ![countries](https://img.shields.io/badge/countries-1-green)
32
- ![years](https://img.shields.io/badge/years-2016-2022-orange)
33
  ![indicators](https://img.shields.io/badge/indicators-0-purple)
34
- ![license](https://img.shields.io/badge/license-cc-by-sa-4.0-lightgrey)
35
 
36
  ## TL;DR
37
 
38
- This dataset packages one official `XLSX` resource from **Mauritius** as
39
- ML-ready Parquet. The source file is the provenance boundary; all usable
40
- indicators or tabular columns from the resource stay together in this repo.
41
 
42
- ## About the source
43
 
44
- - **Source:** [Water sales by tariff of subscriber](https://data.govmu.org/dataset/water-sales-tariff-subscriber)
45
- - **Publisher:** MDPA
46
- - **Resource:** [Energy_Water_Yr22_060623_Source_File.xlsx](https://data.govmu.org/dataset/9584b934-20df-4dd5-98e7-e3ff15f7aa8e/resource/ff1be866-1f8f-4c16-af99-f14cd51ddfb5/download/energy_water_yr22_060623_source_file.xlsx)
47
- - **Format:** `XLSX`
48
- - **License:** [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)
49
- - **Packaging mode:** `tabular_resource`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
- ## Geographic coverage
52
 
53
- 1 Africa country:
54
 
55
- | Country | Rows | First year | Last year | Name |
56
- |---------|-----:|-----------:|----------:|------|
57
  | `MU` | 28 | 2016 | 2022 | `Mauritius` |
58
 
59
- ## Indicators or Resource Contents
60
 
61
- - This source file is packaged as a normalized tabular resource.
62
 
63
  ## Schema
64
 
65
  | Column | Type | Description | Example |
66
  |--------|------|-------------|---------|
67
- | `source_record_id` | `string` | Stable row identifier for tabular resources. | `ff1be866-1f8f-4c16-af99-f14cd51ddfb5:tab16:0` |
68
- | `country_iso3` | `category` | ISO3 country code. | `MU` |
69
- | `country_name` | `category` | Country name. | `Mauritius` |
70
- | `source_sheet` | `string` | Workbook sheet name, when the source is a spreadsheet. | `TAB16` |
71
- | `column_1` | `string` | Source column. | `` |
72
- | `domestic` | `string` | Source column. | `Public Sector Agency` |
73
- | `d_365971` | `float64` | Source column. | `2587.0` |
74
- | `d_92_92495588253963` | `float64` | Source column. | `0.6568740716289817` |
75
- | `d_85053_399` | `float64` | Source column. | `4096.654` |
76
- | `d_69_77075636118678` | `float64` | Source column. | `3.360555268697507` |
77
- | `d_832555_79997` | `float64` | Source column. | `98681.707` |
78
- | `d_55_00829401135688` | `float64` | Source column. | `6.52005829806744` |
79
- | `d_232_40475064964164` | `float64` | Source column. | `1583.5539234634712` |
80
- | `d_9_788624672953988` | `float64` | Source column. | `24.088367482340463` |
81
- | `d_372734` | `float64` | Source column. | `2603.0` |
82
- | `d_92_94069244099789` | `float64` | Source column. | `0.649054345522323` |
83
- | `d_87497_492` | `float64` | Source column. | `4338.04` |
84
- | `d_68_68942650464635` | `float64` | Source column. | `3.40555452439958` |
85
- | `d_870695_6203399999` | `float64` | Source column. | `104306.187` |
86
- | `d_53_14584534898735` | `float64` | Source column. | `6.366680104672956` |
87
- | `d_234_74513191713126` | `float64` | Source column. | `1666.5539761813293` |
88
- | `d_9_951092316337478` | `float64` | Source column. | `24.04454246618289` |
89
- | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `2016` |
90
- | `source_period_end_year` | `Int64` | Last year inferred from source resource metadata. | `2022` |
91
- | `source_period_label` | `category` | Human-readable period inferred from source resource metadata. | `2016-2022` |
92
- | `source_provider` | `category` | Publishing organization. | `MDPA` |
93
- | `source_dataset` | `category` | Source package title. | `Water sales by tariff of subscriber` |
94
- | `source_resource` | `category` | Source resource title. | `Energy_Water_Yr22_060623_Source_File.xlsx` |
95
- | `source_package_id` | `category` | CKAN package UUID. | `9584b934-20df-4dd5-98e7-e3ff15f7aa8e` |
96
- | `source_resource_id` | `category` | CKAN resource UUID. | `ff1be866-1f8f-4c16-af99-f14cd51ddfb5` |
97
- | `source_url` | `category` | Original source resource URL. | `https://data.govmu.org/dataset/9584b934-20df-4dd5-98e7-e3ff15f7aa8e/reso` |
98
- | `license_id` | `category` | Source license identifier. | `CC-BY-SA-4.0` |
99
- | `retrieved_at` | `category` | UTC retrieval timestamp. | `2026-08-08T16:26:20Z` |
100
- | `type_of_tariff` | `string` | Source column. | `` |
101
- | `column_2` | `string` | Source column. | `` |
102
- | `no_of_consumers` | `float64` | Source column. | `` |
103
- | `volume_sold_thousand_m3` | `float64` | Source column. | `` |
104
- | `amount_collectible_rs_000` | `float64` | Source column. | `` |
105
- | `average_sales_price_per_m3` | `float64` | Source column. | `` |
106
- | `no_of_consumers_2` | `float64` | Source column. | `` |
107
- | `volume_sold_thousand_m3_2` | `float64` | Source column. | `` |
108
- | `amount_collectible_rs_000_2` | `float64` | Source column. | `` |
109
- | `average_sales_price_per_m3_2` | `float64` | Source column. | `` |
110
- | `no_of_consumers_3` | `float64` | Source column. | `` |
111
- | `volume_sold_thousand_m3_3` | `float64` | Source column. | `` |
112
- | `amount_collectible_rs_000_3` | `float64` | Source column. | `` |
113
- | `average_sales_price_per_m3_3` | `float64` | Source column. | `` |
114
- | `no_of_consumers_4` | `float64` | Source column. | `` |
115
- | `volume_sold_thousand_m3_4` | `float64` | Source column. | `` |
116
- | `amount_collectible_rs_000_4` | `float64` | Source column. | `` |
117
- | `average_sales_price_per_m3_4` | `float64` | Source column. | `` |
118
- | `no_of_consumers_5` | `float64` | Source column. | `` |
119
- | `volume_sold_thousand_m3_5` | `float64` | Source column. | `` |
120
- | `amount_collectible_rs_000_5` | `float64` | Source column. | `` |
121
- | `average_sales_price_per_m3_5` | `float64` | Source column. | `` |
122
 
123
  ## Usage
124
 
@@ -130,29 +152,76 @@ df = ds["train"].to_pandas()
130
  print(df.head())
131
  ```
132
 
133
- ### Filter to one country
134
 
135
  ```python
136
- sample_country = df[df["country_iso3"] == "MU"]
 
137
  ```
138
 
139
- ### Work with indicators
140
 
141
  ```python
142
- if "indicator_id" in df.columns:
143
- print(df["indicator_id"].value_counts().head())
144
- sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
145
  ```
146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  ## Citation
148
 
149
  ```bibtex
150
  @misc{electric_sheep_africa_africa_mauritius_water_sales_by_tariff_of_subscriber_685f5471_2022,
151
- title = {Water sales by tariff of subscriber | Africa (Mauritius official open data)},
152
  author = {MDPA},
153
  year = {2022},
154
  url = {https://data.govmu.org/dataset/water-sales-tariff-subscriber},
155
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
156
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-water-sales-by-tariff-of-subscriber-685f5471}}
157
  }
158
  ```
@@ -161,20 +230,14 @@ if "indicator_id" in df.columns:
161
 
162
  Released under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/).
163
 
164
- Original data (c) MDPA. When using this dataset, please cite both the
165
- original source above and the Electric Sheep Africa repackaging.
166
-
167
- ## About Electric Sheep
168
 
169
- Electric Sheep Africa is part of the Electric Sheep mission: a unified,
170
- ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
171
- open sources, normalize the schemas, package as Parquet, and publish with
172
- consistent dataset cards so researchers and developers can use `load_dataset()`
173
- to start working in seconds.
174
 
175
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
176
 
177
  ---
178
 
179
- Provenance: ingested 2026-08-08 via the Electric Sheep pipeline. Source URL:
180
- https://data.govmu.org/dataset/9584b934-20df-4dd5-98e7-e3ff15f7aa8e/resource/ff1be866-1f8f-4c16-af99-f14cd51ddfb5/download/energy_water_yr22_060623_source_file.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
+ - "climate"
19
+ - "environment-and-natural-resources"
20
+ - "commercial"
21
+ - "domestic"
22
+ - "industrial"
23
+ - "religious"
24
+ - "water"
25
  configs:
26
  - config_name: default
27
  data_files:
28
  - split: train
29
  path: data/train-00000-of-00001.parquet
30
+ pretty_name: "Water Sales by Tariff of Subscriber | Africa (MDPA)"
31
  ---
32
 
33
+ # Water Sales by Tariff of Subscriber | Africa (MDPA)
34
 
35
+ **28 rows** - **1 Africa country/area** - **2016-2022** - **source table** - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
36
 
37
  ![rows](https://img.shields.io/badge/rows-28-blue)
38
  ![countries](https://img.shields.io/badge/countries-1-green)
39
+ ![period](https://img.shields.io/badge/period-2016--2022-orange)
40
  ![indicators](https://img.shields.io/badge/indicators-0-purple)
41
+ ![license](https://img.shields.io/badge/license-cc--by--sa--4.0-lightgrey)
42
 
43
  ## TL;DR
44
 
45
+ This dataset contains **28 rows** from **MDPA**, covering **Water Sales by Tariff of Subscriber**. It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading examples.
 
 
46
 
47
+ ## What This Dataset Measures
48
 
49
+ Climate and environment datasets help analysts study exposure, resource conditions, environmental pressure, and climate-related trends.
50
+
51
+ Source-provided context: The data shows the water sales by tariff of subscribers for island of Mauritius for the year 2016 to 2022
52
+
53
+ ## How To Read This Dataset
54
+
55
+ - **One row means:** one source record from the original tabular resource, with Electric Sheep Africa provenance columns added where available.
56
+ - **Primary geography column:** `country_iso3`.
57
+ - **Best time column:** `not detected`.
58
+ - **Time coverage basis:** source metadata.
59
+ - **Recommended join keys:** `country_iso3` where available plus source-specific keys.
60
+
61
+ ## Coverage
62
+
63
+ | Dimension | Value |
64
+ |---|---:|
65
+ | Rows | 28 |
66
+ | Countries/areas | 1 |
67
+ | First period | 2016 |
68
+ | Last period | 2022 |
69
+ | Indicators | 0 |
70
+ | Columns | 55 |
71
+ | Source format | XLSX |
72
 
73
+ ## Geographic Coverage
74
 
75
+ Top areas shown below, sorted by row count when available:
76
 
77
+ | Area | Rows | First year | Last year | Name |
78
+ |------|-----:|-----------:|----------:|------|
79
  | `MU` | 28 | 2016 | 2022 | `Mauritius` |
80
 
81
+ ## Indicators, Variables, Or Resource Contents
82
 
83
+ - This repo preserves one source tabular resource with its usable columns kept together.
84
 
85
  ## Schema
86
 
87
  | Column | Type | Description | Example |
88
  |--------|------|-------------|---------|
89
+ | `source_record_id` | `string` | Stable row identifier assigned during Electric Sheep Africa engineering. | `ff1be866-1f8f-4c16-af99-f14cd51ddfb5:tab16:0` |
90
+ | `country_iso3` | `dictionary<values=string, indices=int8, ordered=0>` | ISO3 country or area code. | `MU` |
91
+ | `country_name` | `dictionary<values=string, indices=int8, ordered=0>` | Country or area name. | `Mauritius` |
92
+ | `source_sheet` | `string` | Source column from the original resource. | `TAB16` |
93
+ | `column_1` | `string` | Source column from the original resource. | `` |
94
+ | `domestic` | `string` | Source column from the original resource. | `Public Sector Agency` |
95
+ | `d_365971` | `double` | Source column from the original resource. | `2587.0` |
96
+ | `d_92_92495588253963` | `double` | Source column from the original resource. | `0.6568740716289817` |
97
+ | `d_85053_399` | `double` | Source column from the original resource. | `4096.654` |
98
+ | `d_69_77075636118678` | `double` | Source column from the original resource. | `3.360555268697507` |
99
+ | `d_832555_79997` | `double` | Source column from the original resource. | `98681.707` |
100
+ | `d_55_00829401135688` | `double` | Source column from the original resource. | `6.52005829806744` |
101
+ | `d_232_40475064964164` | `double` | Source column from the original resource. | `1583.5539234634712` |
102
+ | `d_9_788624672953988` | `double` | Source column from the original resource. | `24.088367482340463` |
103
+ | `d_372734` | `double` | Source column from the original resource. | `2603.0` |
104
+ | `d_92_94069244099789` | `double` | Source column from the original resource. | `0.649054345522323` |
105
+ | `d_87497_492` | `double` | Source column from the original resource. | `4338.04` |
106
+ | `d_68_68942650464635` | `double` | Source column from the original resource. | `3.40555452439958` |
107
+ | `d_870695_6203399999` | `double` | Source column from the original resource. | `104306.187` |
108
+ | `d_53_14584534898735` | `double` | Source column from the original resource. | `6.366680104672956` |
109
+ | `d_234_74513191713126` | `double` | Source column from the original resource. | `1666.5539761813293` |
110
+ | `d_9_951092316337478` | `double` | Source column from the original resource. | `24.04454246618289` |
111
+ | `source_period_start_year` | `int64` | Start year inferred from source metadata. | `2016` |
112
+ | `source_period_end_year` | `int64` | End year inferred from source metadata. | `2022` |
113
+ | `source_period_label` | `dictionary<values=string, indices=int8, ordered=0>` | Source column from the original resource. | `2016-2022` |
114
+ | `source_provider` | `dictionary<values=string, indices=int8, ordered=0>` | Publishing organization. | `MDPA` |
115
+ | `source_dataset` | `dictionary<values=string, indices=int8, ordered=0>` | Source dataset or package title. | `Water sales by tariff of subscriber` |
116
+ | `source_resource` | `dictionary<values=string, indices=int8, ordered=0>` | Source resource title, table name, or file name. | `Energy_Water_Yr22_060623_Source_File.xlsx` |
117
+ | `source_package_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source package identifier. | `9584b934-20df-4dd5-98e7-e3ff15f7aa8e` |
118
+ | `source_resource_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source resource identifier. | `ff1be866-1f8f-4c16-af99-f14cd51ddfb5` |
119
+ | `source_url` | `dictionary<values=string, indices=int8, ordered=0>` | Original source URL or download URL. | `https://data.govmu.org/dataset/9584b934-20df-4dd5-98e7-e3ff15f7aa8e/r...` |
120
+ | `license_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source license identifier. | `CC-BY-SA-4.0` |
121
+ | `retrieved_at` | `dictionary<values=string, indices=int8, ordered=0>` | UTC source retrieval timestamp from the Electric Sheep Africa pipeline. | `2026-08-08T16:26:20Z` |
122
+ | `type_of_tariff` | `string` | Source column from the original resource. | `` |
123
+ | `column_2` | `string` | Source column from the original resource. | `` |
124
+ | `no_of_consumers` | `double` | Source column from the original resource. | `` |
125
+ | `volume_sold_thousand_m3` | `double` | Source column from the original resource. | `` |
126
+ | `amount_collectible_rs_000` | `double` | Source column from the original resource. | `` |
127
+ | `average_sales_price_per_m3` | `double` | Source column from the original resource. | `` |
128
+ | `no_of_consumers_2` | `double` | Source column from the original resource. | `` |
129
+ | `volume_sold_thousand_m3_2` | `double` | Source column from the original resource. | `` |
130
+ | `amount_collectible_rs_000_2` | `double` | Source column from the original resource. | `` |
131
+ | `average_sales_price_per_m3_2` | `double` | Source column from the original resource. | `` |
132
+ | `no_of_consumers_3` | `double` | Source column from the original resource. | `` |
133
+ | `volume_sold_thousand_m3_3` | `double` | Source column from the original resource. | `` |
134
+ | `amount_collectible_rs_000_3` | `double` | Source column from the original resource. | `` |
135
+ | `average_sales_price_per_m3_3` | `double` | Source column from the original resource. | `` |
136
+ | `no_of_consumers_4` | `double` | Source column from the original resource. | `` |
137
+ | `volume_sold_thousand_m3_4` | `double` | Source column from the original resource. | `` |
138
+ | `amount_collectible_rs_000_4` | `double` | Source column from the original resource. | `` |
139
+ | `average_sales_price_per_m3_4` | `double` | Source column from the original resource. | `` |
140
+ | `no_of_consumers_5` | `double` | Source column from the original resource. | `` |
141
+ | `volume_sold_thousand_m3_5` | `double` | Source column from the original resource. | `` |
142
+ | `amount_collectible_rs_000_5` | `double` | Source column from the original resource. | `` |
143
+ | `average_sales_price_per_m3_5` | `double` | Source column from the original resource. | `` |
144
 
145
  ## Usage
146
 
 
152
  print(df.head())
153
  ```
154
 
155
+ ### Inspect Columns
156
 
157
  ```python
158
+ print(df.info())
159
+ print(df.head())
160
  ```
161
 
162
+ ### Filter By Geography
163
 
164
  ```python
165
+ if "country_iso3" in df.columns:
166
+ sample = df[df["country_iso3"] == "MU"]
 
167
  ```
168
 
169
+ ### Time-Series Pattern
170
+
171
+ ```python
172
+ if "value" in df.columns and "year" in df.columns:
173
+ trend = df.sort_values("year")
174
+ ```
175
+
176
+ ### Pivot For Analysis
177
+
178
+ ```python
179
+ if {"indicator_id", "year", "value"}.issubset(df.columns):
180
+ matrix = df.pivot_table(index="year", columns="indicator_id", values="value")
181
+ print(matrix.tail())
182
+ ```
183
+
184
+ ## Data Quality Notes
185
+
186
+ - No canonical year/date column was detected in the packaged table; use source metadata and domain context for temporal interpretation.
187
+ - Missing values are preserved rather than silently imputed.
188
+ - Column names are standardized for machine use; source meanings are preserved where known.
189
+ - Always confirm source methodology, units, and collection definitions before policy, production, or redistribution-sensitive use.
190
+
191
+ ## Source And Provenance
192
+
193
+ - **Source:** [MDPA](https://data.govmu.org/dataset/water-sales-tariff-subscriber)
194
+ - **Publisher:** MDPA
195
+ - **Portal:** [https://data.govmu.org](https://data.govmu.org)
196
+ - **Resource:** [Energy_Water_Yr22_060623_Source_File.xlsx](https://data.govmu.org/dataset/9584b934-20df-4dd5-98e7-e3ff15f7aa8e/resource/ff1be866-1f8f-4c16-af99-f14cd51ddfb5/download/energy_water_yr22_060623_source_file.xlsx)
197
+ - **License:** [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)
198
+ - **Retrieved/generated:** `2026-08-08T16:30:12Z`
199
+ - **Hugging Face repo:** [electricsheepafrica/africa-mauritius-water-sales-by-tariff-of-subscriber-685f5471](https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-water-sales-by-tariff-of-subscriber-685f5471)
200
+
201
+ ## Transformations Applied
202
+
203
+ - Converted the source table to Parquet for efficient analytics and ML workflows.
204
+ - Added or preserved source provenance columns where available.
205
+ - Standardized README metadata, dataset loading configuration, schema documentation, and citation format.
206
+ - Preserved source-reported values without analytical imputation.
207
+
208
+ ## Suggested Analyses
209
+
210
+ - Analyze seasonal or annual patterns
211
+ - Join with agriculture or health data
212
+ - Map geographic exposure
213
+ - Check missingness before modeling
214
+ - Use `country_iso3` as the safest geography join key when present
215
+
216
  ## Citation
217
 
218
  ```bibtex
219
  @misc{electric_sheep_africa_africa_mauritius_water_sales_by_tariff_of_subscriber_685f5471_2022,
220
+ title = {Water Sales by Tariff of Subscriber | Africa (MDPA)},
221
  author = {MDPA},
222
  year = {2022},
223
  url = {https://data.govmu.org/dataset/water-sales-tariff-subscriber},
224
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
225
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-mauritius-water-sales-by-tariff-of-subscriber-685f5471}}
226
  }
227
  ```
 
230
 
231
  Released under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/).
232
 
233
+ Original data is published by MDPA. Electric Sheep Africa
234
+ engineering standardizes the data for discovery, loading, and analysis on
235
+ Hugging Face. Cite both the original source and this ML-ready dataset when used.
 
236
 
237
+ ## About Electric Sheep Africa
 
 
 
 
238
 
239
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
240
 
241
  ---
242
 
243
+ Provenance: README standardized 2026-08-11 by the Electric Sheep Africa README system. Source URL: https://data.govmu.org/dataset/water-sales-tariff-subscriber