Olaroti commited on
Commit
3637bc2
·
verified ·
1 Parent(s): fca3883

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +132 -73
README.md CHANGED
@@ -5,90 +5,107 @@ 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
- - senegal
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: "Déficit /Excédent pluviométrique | Africa (Senegal official open data)"
24
  ---
25
 
26
- # Déficit /Excédent pluviométrique | Africa (Senegal official open data)
27
 
28
- 1 rows - 1 Africa country - not-applicable - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
29
 
30
  ![rows](https://img.shields.io/badge/rows-1-blue)
31
  ![countries](https://img.shields.io/badge/countries-1-green)
32
- ![years](https://img.shields.io/badge/years-not-applicable-orange)
33
  ![indicators](https://img.shields.io/badge/indicators-0-purple)
34
  ![license](https://img.shields.io/badge/license-odbl-lightgrey)
35
 
36
  ## TL;DR
37
 
38
- This dataset packages one official `XLSX` resource from **Senegal** 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:** [Déficit /Excédent pluviométrique](https://agridata.ansd.sn/dataset/deficitouexcedentpluviometrique)
45
- - **Publisher:** ANACIM
46
- - **Resource:** [META DONNEES](https://agridata.ansd.sn/dataset/abffbd69-e914-4afa-997f-6e2ce6cdfd40/resource/996d04b0-3154-4d85-b54f-00a524d30e8f/download/metadata.xlsx)
47
- - **Format:** `XLSX`
48
- - **License:** [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/)
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
- | `SEN` | 1 | n/a | n/a | `Senegal` |
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. | `996d04b0-3154-4d85-b54f-00a524d30e8f:metadata:0` |
68
- | `country_iso3` | `category` | ISO3 country code. | `SEN` |
69
- | `country_name` | `category` | Country name. | `Senegal` |
70
- | `source_sheet` | `string` | Workbook sheet name, when the source is a spreadsheet. | `METADATA` |
71
- | `methode_de_collecte` | `string` | Source column. | `Données d'observation` |
72
- | `mode_de_calcul` | `string` | Source column. | `Différence` |
73
- | `frequence_de_production` | `string` | Source column. | `saisonière` |
74
- | `delai_de_diffusion` | `string` | Source column. | `annuelle (avant la fin de saison courante)` |
75
- | `indicateur_diffuse` | `string` | Source column. | `non` |
76
- | `niveau_de_desagregation` | `string` | Source column. | `zone` |
77
- | `statut_de_l_indicateur` | `string` | Source column. | `définitif` |
78
- | `unite_echelle` | `string` | Source column. | `unité` |
79
- | `source` | `string` | Source column. | `ANACIM` |
80
- | `methode_de_acces` | `string` | Source column. | `sur demande` |
81
- | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `` |
82
- | `source_period_end_year` | `Int64` | Last year inferred from source resource metadata. | `` |
83
- | `source_period_label` | `string` | Human-readable period inferred from source resource metadata. | `` |
84
- | `source_provider` | `category` | Publishing organization. | `ANACIM` |
85
- | `source_dataset` | `category` | Source package title. | `Déficit /Excédent pluviométrique` |
86
- | `source_resource` | `category` | Source resource title. | `META DONNEES` |
87
- | `source_package_id` | `category` | CKAN package UUID. | `abffbd69-e914-4afa-997f-6e2ce6cdfd40` |
88
- | `source_resource_id` | `category` | CKAN resource UUID. | `996d04b0-3154-4d85-b54f-00a524d30e8f` |
89
- | `source_url` | `category` | Original source resource URL. | `https://agridata.ansd.sn/dataset/abffbd69-e914-4afa-997f-6e2ce6cdfd40/re` |
90
- | `license_id` | `category` | Source license identifier. | `odc-odbl` |
91
- | `retrieved_at` | `category` | UTC retrieval timestamp. | `2026-07-27T11:04:43Z` |
92
 
93
  ## Usage
94
 
@@ -100,29 +117,77 @@ df = ds["train"].to_pandas()
100
  print(df.head())
101
  ```
102
 
103
- ### Filter to one country
104
 
105
  ```python
106
- sample_country = df[df["country_iso3"] == "SEN"]
 
107
  ```
108
 
109
- ### Work with indicators
110
 
111
  ```python
112
- if "indicator_id" in df.columns:
113
- print(df["indicator_id"].value_counts().head())
114
- sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
115
  ```
116
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  ## Citation
118
 
119
  ```bibtex
120
  @misc{electric_sheep_africa_africa_senegal_deficit_excedent_pluviometrique_eaed970a_2026,
121
- title = {Déficit /Excédent pluviométrique | Africa (Senegal official open data)},
122
  author = {ANACIM},
123
  year = {2026},
124
  url = {https://agridata.ansd.sn/dataset/deficitouexcedentpluviometrique},
125
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
126
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-senegal-deficit-excedent-pluviometrique-eaed970a}}
127
  }
128
  ```
@@ -131,20 +196,14 @@ if "indicator_id" in df.columns:
131
 
132
  Released under [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/).
133
 
134
- Original data (c) ANACIM. When using this dataset, please cite both the
135
- original source above and the Electric Sheep Africa repackaging.
136
-
137
- ## About Electric Sheep
138
 
139
- Electric Sheep Africa is part of the Electric Sheep mission: a unified,
140
- ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
141
- open sources, normalize the schemas, package as Parquet, and publish with
142
- consistent dataset cards so researchers and developers can use `load_dataset()`
143
- to start working in seconds.
144
 
145
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
146
 
147
  ---
148
 
149
- Provenance: ingested 2026-07-27 via the Electric Sheep pipeline. Source URL:
150
- https://agridata.ansd.sn/dataset/abffbd69-e914-4afa-997f-6e2ce6cdfd40/resource/996d04b0-3154-4d85-b54f-00a524d30e8f/download/metadata.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
+ - "senegal"
17
+ - "anacim"
18
+ - "climat"
19
+ - "indicateursoddnationaux"
20
  configs:
21
  - config_name: default
22
  data_files:
23
  - split: train
24
  path: data/train-00000-of-00001.parquet
25
+ pretty_name: "Deficit Excedent Pluviometrique | Africa (ANACIM)"
26
  ---
27
 
28
+ # Deficit Excedent Pluviometrique | Africa (ANACIM)
29
 
30
+ **1 rows** - **1 Africa country/area** - **detected** - **source table** - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
31
 
32
  ![rows](https://img.shields.io/badge/rows-1-blue)
33
  ![countries](https://img.shields.io/badge/countries-1-green)
34
+ ![period](https://img.shields.io/badge/period-detected-orange)
35
  ![indicators](https://img.shields.io/badge/indicators-0-purple)
36
  ![license](https://img.shields.io/badge/license-odbl-lightgrey)
37
 
38
  ## TL;DR
39
 
40
+ This dataset contains **1 rows** from **ANACIM**, covering **Deficit Excedent Pluviometrique**. It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading examples.
 
 
41
 
42
+ ## What This Dataset Measures
43
 
44
+ Official statistics datasets help analysts inspect public data as published by governments, national statistical systems, and regional data portals.
45
+
46
+ Source-provided context: META DATA de l'indicateur du déficit ou excédent pluviométrique
47
+
48
+ ## How To Read This Dataset
49
+
50
+ - **One row means:** one source record from the original tabular resource, with Electric Sheep Africa provenance columns added where available.
51
+ - **Primary geography column:** `country_iso3`.
52
+ - **Best time column:** `source_period_start_year`.
53
+ - **Time coverage basis:** source_period_start_year.
54
+ - **Recommended join keys:** `country_iso3` where available plus source-specific keys.
55
+
56
+ ## Coverage
57
+
58
+ | Dimension | Value |
59
+ |---|---:|
60
+ | Rows | 1 |
61
+ | Countries/areas | 1 |
62
+ | First period | detected |
63
+ | Last period | detected |
64
+ | Indicators | 0 |
65
+ | Columns | 25 |
66
+ | Source format | XLSX |
67
 
68
+ ## Geographic Coverage
69
 
70
+ Top areas shown below, sorted by row count when available:
71
 
72
+ | Area | Rows | First year | Last year | Name |
73
+ |------|-----:|-----------:|----------:|------|
74
+ | `SEN` | 1 | detected | detected | `Senegal` |
75
 
76
+ ## Indicators, Variables, Or Resource Contents
77
 
78
+ - This repo preserves one source tabular resource with its usable columns kept together.
79
 
80
  ## Schema
81
 
82
  | Column | Type | Description | Example |
83
  |--------|------|-------------|---------|
84
+ | `source_record_id` | `string` | Stable row identifier assigned during Electric Sheep Africa engineering. | `996d04b0-3154-4d85-b54f-00a524d30e8f:metadata:0` |
85
+ | `country_iso3` | `dictionary<values=string, indices=int8, ordered=0>` | ISO3 country or area code. | `SEN` |
86
+ | `country_name` | `dictionary<values=string, indices=int8, ordered=0>` | Country or area name. | `Senegal` |
87
+ | `source_sheet` | `string` | Source column from the original resource. | `METADATA` |
88
+ | `methode_de_collecte` | `string` | Source column from the original resource. | `Données d'observation` |
89
+ | `mode_de_calcul` | `string` | Source column from the original resource. | `Différence` |
90
+ | `frequence_de_production` | `string` | Source column from the original resource. | `saisonière` |
91
+ | `delai_de_diffusion` | `string` | Source column from the original resource. | `annuelle (avant la fin de saison courante)` |
92
+ | `indicateur_diffuse` | `string` | Source column from the original resource. | `non` |
93
+ | `niveau_de_desagregation` | `string` | Source column from the original resource. | `zone` |
94
+ | `statut_de_l_indicateur` | `string` | Source column from the original resource. | `définitif` |
95
+ | `unite_echelle` | `string` | Source column from the original resource. | `unité` |
96
+ | `source` | `string` | Source column from the original resource. | `ANACIM` |
97
+ | `methode_de_acces` | `string` | Source column from the original resource. | `sur demande` |
98
+ | `source_period_start_year` | `int64` | Start year inferred from source metadata. | `` |
99
+ | `source_period_end_year` | `int64` | End year inferred from source metadata. | `` |
100
+ | `source_period_label` | `string` | Source column from the original resource. | `` |
101
+ | `source_provider` | `dictionary<values=string, indices=int8, ordered=0>` | Publishing organization. | `ANACIM` |
102
+ | `source_dataset` | `dictionary<values=string, indices=int8, ordered=0>` | Source dataset or package title. | `Déficit /Excédent pluviométrique` |
103
+ | `source_resource` | `dictionary<values=string, indices=int8, ordered=0>` | Source resource title, table name, or file name. | `META DONNEES` |
104
+ | `source_package_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source package identifier. | `abffbd69-e914-4afa-997f-6e2ce6cdfd40` |
105
+ | `source_resource_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source resource identifier. | `996d04b0-3154-4d85-b54f-00a524d30e8f` |
106
+ | `source_url` | `dictionary<values=string, indices=int8, ordered=0>` | Original source URL or download URL. | `https://agridata.ansd.sn/dataset/abffbd69-e914-4afa-997f-6e2ce6cdfd40...` |
107
+ | `license_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source license identifier. | `odc-odbl` |
108
+ | `retrieved_at` | `dictionary<values=string, indices=int8, ordered=0>` | UTC source retrieval timestamp from the Electric Sheep Africa pipeline. | `2026-07-27T11:04:43Z` |
109
 
110
  ## Usage
111
 
 
117
  print(df.head())
118
  ```
119
 
120
+ ### Inspect Columns
121
 
122
  ```python
123
+ print(df.info())
124
+ print(df.head())
125
  ```
126
 
127
+ ### Filter By Geography
128
 
129
  ```python
130
+ if "country_iso3" in df.columns:
131
+ sample = df[df["country_iso3"] == "SEN"]
 
132
  ```
133
 
134
+ ### Time-Series Pattern
135
+
136
+ ```python
137
+ if "value" in df.columns and "source_period_start_year" in df.columns:
138
+ trend = df.sort_values("source_period_start_year")
139
+ ```
140
+
141
+ ### Pivot For Analysis
142
+
143
+ ```python
144
+ if {"indicator_id", "year", "value"}.issubset(df.columns):
145
+ matrix = df.pivot_table(index="year", columns="indicator_id", values="value")
146
+ print(matrix.tail())
147
+ ```
148
+
149
+ ## Data Quality Notes
150
+
151
+ - Canonical time field: `source_period_start_year`.
152
+ - Missing values are preserved rather than silently imputed.
153
+ - Column names are standardized for machine use; source meanings are preserved where known.
154
+ - Always confirm source methodology, units, and collection definitions before policy, production, or redistribution-sensitive use.
155
+
156
+ ## Source And Provenance
157
+
158
+ - **Source:** [ANACIM](https://agridata.ansd.sn/dataset/deficitouexcedentpluviometrique)
159
+ - **Publisher:** ANACIM
160
+ - **Portal:** [https://agridata.ansd.sn](https://agridata.ansd.sn)
161
+ - **Resource:** [META DONNEES](https://agridata.ansd.sn/dataset/abffbd69-e914-4afa-997f-6e2ce6cdfd40/resource/996d04b0-3154-4d85-b54f-00a524d30e8f/download/metadata.xlsx)
162
+ - **License:** [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/)
163
+ - **Retrieved/generated:** `2026-07-27T11:05:07Z`
164
+ - **Hugging Face repo:** [electricsheepafrica/africa-senegal-deficit-excedent-pluviometrique-eaed970a](https://huggingface.co/datasets/electricsheepafrica/africa-senegal-deficit-excedent-pluviometrique-eaed970a)
165
+
166
+ ## Transformations Applied
167
+
168
+ - Converted the source table to Parquet for efficient analytics and ML workflows.
169
+ - Added or preserved source provenance columns where available.
170
+ - Standardized README metadata, dataset loading configuration, schema documentation, and citation format.
171
+ - Preserved source-reported values without analytical imputation.
172
+
173
+ ## Suggested Analyses
174
+
175
+ - Profile the distribution of values
176
+ - Compare categories or geographies
177
+ - Join with complementary public datasets
178
+ - Build time-series views and period-over-period comparisons
179
+ - Check missingness before modeling
180
+ - Use `country_iso3` as the safest geography join key when present
181
+
182
  ## Citation
183
 
184
  ```bibtex
185
  @misc{electric_sheep_africa_africa_senegal_deficit_excedent_pluviometrique_eaed970a_2026,
186
+ title = {Deficit Excedent Pluviometrique | Africa (ANACIM)},
187
  author = {ANACIM},
188
  year = {2026},
189
  url = {https://agridata.ansd.sn/dataset/deficitouexcedentpluviometrique},
190
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
191
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-senegal-deficit-excedent-pluviometrique-eaed970a}}
192
  }
193
  ```
 
196
 
197
  Released under [Open Data Commons Open Database License](https://opendatacommons.org/licenses/odbl/).
198
 
199
+ Original data is published by ANACIM. Electric Sheep Africa
200
+ engineering standardizes the data for discovery, loading, and analysis on
201
+ Hugging Face. Cite both the original source and this ML-ready dataset when used.
 
202
 
203
+ ## About Electric Sheep Africa
 
 
 
 
204
 
205
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
206
 
207
  ---
208
 
209
+ Provenance: README standardized 2026-08-12 by the Electric Sheep Africa README system. Source URL: https://agridata.ansd.sn/dataset/deficitouexcedentpluviometrique