Kossisoroyce commited on
Commit
88bbffe
·
verified ·
1 Parent(s): c509ac2

Add ML-ready official indicator dataset

Browse files
README.md ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: odbl
3
+ language:
4
+ - en
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
+ - morocco
16
+ - official-statistics
17
+ - open-data
18
+ pretty_name: "Pluie journalière du barrage Y.B. TACHFINE (1967-2024) | Africa (Morocco official open data)"
19
+ ---
20
+
21
+ # Pluie journalière du barrage Y.B. TACHFINE (1967-2024) | Africa (Morocco official open data)
22
+
23
+ 40 rows - 1 Africa country - not-applicable - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
24
+
25
+ ![rows](https://img.shields.io/badge/rows-40-blue)
26
+ ![countries](https://img.shields.io/badge/countries-1-green)
27
+ ![years](https://img.shields.io/badge/years-not-applicable-orange)
28
+ ![indicators](https://img.shields.io/badge/indicators-0-purple)
29
+ ![license](https://img.shields.io/badge/license-odbl-lightgrey)
30
+
31
+ ## TL;DR
32
+
33
+ This dataset packages one official `XLSX` resource from **Morocco** as
34
+ ML-ready Parquet. The source file is the provenance boundary; all usable
35
+ indicators or tabular columns from the resource stay together in this repo.
36
+
37
+ ## About the source
38
+
39
+ - **Source:** [Pluie journalière du barrage Y.B. TACHFINE (1967-2024)](https://data.gov.ma/data/dataset/pluie-journaliere-du-barrage-y-b-tachfine-1967-2024)
40
+ - **Publisher:** Agence du Bassin Hydraulique de Souss Massa
41
+ - **Resource:** [Pj.Barrage Y.B.TACHFINE.78900 _ B.Y.T.TACHFINE-1975.xlsx](https://data.gov.ma/data/fr/dataset/16a867e2-1b7f-4cd8-9322-24a11cbf7ddb/resource/75c1a422-b397-4cfb-ae08-21e16c3a7465/download/pj.barrage-y.b.tachfine.78900-_-b.y.t.tachfine-1975.xlsx)
42
+ - **Format:** `XLSX`
43
+ - **License:** [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/)
44
+ - **Packaging mode:** `tabular_resource`
45
+
46
+ ## Geographic coverage
47
+
48
+ 1 Africa country:
49
+
50
+ | Country | Rows | First year | Last year | Name |
51
+ |---------|-----:|-----------:|----------:|------|
52
+ | `MAR` | 40 | n/a | n/a | `Morocco` |
53
+
54
+ ## Indicators or Resource Contents
55
+
56
+ - This source file is packaged as a normalized tabular resource.
57
+
58
+ ## Schema
59
+
60
+ | Column | Type | Description | Example |
61
+ |--------|------|-------------|---------|
62
+ | `source_record_id` | `string` | Stable row identifier for tabular resources. | `75c1a422-b397-4cfb-ae08-21e16c3a7465:sheet1:0` |
63
+ | `country_iso3` | `string` | ISO3 country code. | `MAR` |
64
+ | `country_name` | `string` | Country name. | `Morocco` |
65
+ | `source_sheet` | `string` | Workbook sheet name, when the source is a spreadsheet. | `Sheet1` |
66
+ | `column_1` | `float64` | Source column. | `` |
67
+ | `jour` | `string` | Source column. | `1` |
68
+ | `septembre` | `float64` | Source column. | `0.0` |
69
+ | `octobre` | `float64` | Source column. | `0.0` |
70
+ | `novembre` | `string` | Source column. | `0` |
71
+ | `decembre` | `float64` | Source column. | `0.0` |
72
+ | `janvier` | `float64` | Source column. | `0.0` |
73
+ | `fevrier` | `float64` | Source column. | `10.8` |
74
+ | `mars` | `float64` | Source column. | `0.0` |
75
+ | `avril` | `float64` | Source column. | `0.0` |
76
+ | `mai` | `float64` | Source column. | `0.0` |
77
+ | `juin` | `float64` | Source column. | `0.0` |
78
+ | `juillet` | `float64` | Source column. | `0.0` |
79
+ | `aout` | `float64` | Source column. | `0.0` |
80
+ | `source_provider` | `string` | Publishing organization. | `Agence du Bassin Hydraulique de Souss Massa` |
81
+ | `source_dataset` | `string` | Source package title. | `Pluie journalière du barrage Y.B. TACHFINE (1967-2024)` |
82
+ | `source_resource` | `string` | Source resource title. | `Pj.Barrage Y.B.TACHFINE.78900 _ B.Y.T.TACHFINE-1975.xlsx` |
83
+ | `source_package_id` | `string` | CKAN package UUID. | `16a867e2-1b7f-4cd8-9322-24a11cbf7ddb` |
84
+ | `source_resource_id` | `string` | CKAN resource UUID. | `75c1a422-b397-4cfb-ae08-21e16c3a7465` |
85
+ | `source_url` | `string` | Original source resource URL. | `https://data.gov.ma/data/fr/dataset/16a867e2-1b7f-4cd8-9322-24a11cbf7ddb` |
86
+ | `license_id` | `string` | Source license identifier. | `odc-odbl` |
87
+ | `retrieved_at` | `string` | UTC retrieval timestamp. | `2026-07-16T21:31:48Z` |
88
+
89
+ ## Usage
90
+
91
+ ```python
92
+ from datasets import load_dataset
93
+
94
+ ds = load_dataset("electricsheepafrica/africa-morocco-pluie-journaliere-du-barrage-y-b-tachfine-1967-2024-82068f67")
95
+ 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"] == "MAR"]
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_morocco_pluie_journaliere_du_barrage_y_b_tachfine_1967_2024_82068f67_2026,
117
+ title = {Pluie journalière du barrage Y.B. TACHFINE (1967-2024) | Africa (Morocco official open data)},
118
+ author = {Agence du Bassin Hydraulique de Souss Massa},
119
+ year = {2026},
120
+ url = {https://data.gov.ma/data/dataset/pluie-journaliere-du-barrage-y-b-tachfine-1967-2024},
121
+ publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
122
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-morocco-pluie-journaliere-du-barrage-y-b-tachfine-1967-2024-82068f67}}
123
+ }
124
+ ```
125
+
126
+ ## License
127
+
128
+ Released under [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/).
129
+
130
+ Original data (c) Agence du Bassin Hydraulique de Souss Massa. 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-07-16 via the Electric Sheep pipeline. Source URL:
146
+ https://data.gov.ma/data/fr/dataset/16a867e2-1b7f-4cd8-9322-24a11cbf7ddb/resource/75c1a422-b397-4cfb-ae08-21e16c3a7465/download/pj.barrage-y.b.tachfine.78900-_-b.y.t.tachfine-1975.xlsx
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d438c03f1be9585242fa8daaf1341b2c7997927e8813416ac27a641448a4e37e
3
+ size 18036
metadata/source_snapshot.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "columns": [
3
+ "source_record_id",
4
+ "country_iso3",
5
+ "country_name",
6
+ "source_sheet",
7
+ "column_1",
8
+ "jour",
9
+ "septembre",
10
+ "octobre",
11
+ "novembre",
12
+ "decembre",
13
+ "janvier",
14
+ "fevrier",
15
+ "mars",
16
+ "avril",
17
+ "mai",
18
+ "juin",
19
+ "juillet",
20
+ "aout",
21
+ "source_provider",
22
+ "source_dataset",
23
+ "source_resource",
24
+ "source_package_id",
25
+ "source_resource_id",
26
+ "source_url",
27
+ "license_id",
28
+ "retrieved_at"
29
+ ],
30
+ "generated_at": "2026-07-16T21:39:02Z",
31
+ "indicator_count": 0,
32
+ "mode": "tabular_resource",
33
+ "repo_id": "electricsheepafrica/africa-morocco-pluie-journaliere-du-barrage-y-b-tachfine-1967-2024-82068f67",
34
+ "rows": 40,
35
+ "source": {
36
+ "api_base_url": "https://data.gov.ma/data",
37
+ "country_iso3": "MAR",
38
+ "country_name": "Morocco",
39
+ "group_names": "agriculture",
40
+ "license_id": "odc-odbl",
41
+ "license_title": "Open Data Commons Open Database License (ODbL)",
42
+ "license_url": "https://opendefinition.org/licenses/odc-odbl",
43
+ "organization_id": "a9444d6e-007c-4004-b9c5-7982e3a4f60f",
44
+ "organization_name": "agence-du-bassin-hydraulique-de-souss-massa",
45
+ "organization_title": "Agence du Bassin Hydraulique de Souss Massa",
46
+ "package_author": "",
47
+ "package_id": "16a867e2-1b7f-4cd8-9322-24a11cbf7ddb",
48
+ "package_maintainer": "",
49
+ "package_metadata_created": "2025-04-17T10:35:10.714802",
50
+ "package_metadata_modified": "2025-04-17T14:26:01.594827",
51
+ "package_name": "pluie-journaliere-du-barrage-y-b-tachfine-1967-2024",
52
+ "package_notes": "Ce fichier présente la pluie journalière de la station B.Y.T. TACHFINE pour la période de 1967 à 2024",
53
+ "package_page_url": "https://data.gov.ma/data/dataset/pluie-journaliere-du-barrage-y-b-tachfine-1967-2024",
54
+ "package_private": "False",
55
+ "package_state": "active",
56
+ "package_title": "Pluie journalière du barrage Y.B. TACHFINE (1967-2024)",
57
+ "package_version": "",
58
+ "portal_url": "https://data.gov.ma/data",
59
+ "resource_created": "2025-04-17T10:36:16.038779",
60
+ "resource_datastore_active": "False",
61
+ "resource_description": "",
62
+ "resource_format": "XLSX",
63
+ "resource_hash": "",
64
+ "resource_id": "75c1a422-b397-4cfb-ae08-21e16c3a7465",
65
+ "resource_last_modified": "2025-04-17T10:36:16.000405",
66
+ "resource_mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
67
+ "resource_name": "Pj.Barrage Y.B.TACHFINE.78900 _ B.Y.T.TACHFINE-1975.xlsx",
68
+ "resource_position": "9",
69
+ "resource_size": "7391",
70
+ "resource_state": "active",
71
+ "resource_url": "https://data.gov.ma/data/fr/dataset/16a867e2-1b7f-4cd8-9322-24a11cbf7ddb/resource/75c1a422-b397-4cfb-ae08-21e16c3a7465/download/pj.barrage-y.b.tachfine.78900-_-b.y.t.tachfine-1975.xlsx",
72
+ "retrieved_at": "2026-07-16T17:56:59Z",
73
+ "tag_names": "journalière; pluie; station; tachfine"
74
+ },
75
+ "year_max": null,
76
+ "year_min": null
77
+ }