Olaroti commited on
Commit
118fbc0
·
verified ·
1 Parent(s): a46286d

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +102 -133
README.md CHANGED
@@ -1,175 +1,144 @@
1
  ---
2
- annotations_creators:
3
- - no-annotation
4
- language_creators:
5
- - found
6
  language:
7
  - en
8
- license: other
9
- multilinguality:
10
- - monolingual
11
- size_categories:
12
- - n<1K
13
- source_datasets:
14
- - original
15
  task_categories:
16
  - tabular-classification
17
- task_ids: []
 
 
 
18
  tags:
19
- - africa
20
- - humanitarian
21
- - hdx
22
- - electric-sheep-africa
23
- - affected-population
24
- - economics
25
- - fatalities
26
- - hxl
27
- - natural-disasters
28
- - mrt
29
- pretty_name: "EM-DAT - Country Profiles, Mauritania"
30
- dataset_info:
31
- splits:
32
- - name: train
33
- num_examples: 18
34
- - name: test
35
- num_examples: 4
36
  ---
37
 
38
- # EM-DAT - Country Profiles, Mauritania
39
 
40
- **Publisher:** Centre for Research on the Epidemiology of Disasters · **Source:** [HDX](https://data.humdata.org/dataset/emdat-country-profiles-mrt) · **License:** `hdx-other` · **Updated:** 2026-04-24
41
 
42
- ---
43
-
44
- ## Abstract
45
-
46
- # Aggregated figures for natural hazard related events in EM-DAT: *Mauritania*
47
 
48
- Documentation on the Country Profiles [available here](https://doc.emdat.be/docs/data-accessibility/#the-humanitarian-data-exchange-hdx-em-dat-country-profiles)
49
 
50
- How to cite the EM-DAT Project [here](https://doc.emdat.be/docs/introduction/#how-to-cite)
51
 
52
- Main dataset on HDX: [EM-DAT - Country Profiles](https://data.humdata.org/dataset/emdat-country-profiles)
53
 
54
- More on the EM-DAT database : [website](https://www.emdat.be) / [data portal](https://public.emdat.be)
55
 
56
- Each line corresponds to a given combination of **year, country, disaster subtype** and reports figures for :
57
 
58
- - number of disasters
59
- - total number of people affected
60
- - total number of deaths
61
- - economic losses (original value and adjusted)
62
-
63
- ---
64
 
65
- Each row in this dataset represents country-level aggregates. Data was last updated on HDX on 2026-04-24. Geographic scope: **MRT**.
66
-
67
- *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
68
-
69
- ---
70
-
71
- ## Dataset Characteristics
72
-
73
- | | |
74
  |---|---|
75
- | **Domain** | Demographics and population |
76
- | **Unit of observation** | Country-level aggregates |
77
- | **Rows (total)** | 23 |
78
- | **Columns** | 13 (5 numeric, 8 categorical, 0 datetime) |
79
- | **Train split** | 18 rows |
80
- | **Test split** | 4 rows |
81
- | **Geographic scope** | MRT |
82
- | **Publisher** | Centre for Research on the Epidemiology of Disasters |
83
- | **HDX last updated** | 2026-04-24 |
84
-
85
- ---
86
-
87
- ## Variables
88
-
89
- **Geographic** — `year` (range 2001.0–2023.0), `country` (Mauritania, #country +name), `iso` (MRT, #country +code), `disaster_type` (Flood, Drought, #cause +type), `disaster_subtype` (Riverine flood, Drought, Flood (General)).
90
-
91
- **Outcome / Measurement** — `total_events` (range 1.0–2.0), `total_affected` (range 1619.0–3893774.0), `total_deaths` (range 1.0–25.0).
92
-
93
- **Identifier / Metadata** — `esa_source` (HDX), `esa_processed` (2026-04-29).
94
-
95
- **Other** — `disaster_group` (Natural, #cause +group), `disaster_subroup` (Hydrological, Climatological, #cause +subgroup), `cpi` (range 56.4466–97.135).
96
-
97
- ---
98
-
99
- ## Quick Start
100
 
101
  ```python
102
  from datasets import load_dataset
103
 
104
- ds = load_dataset("electricsheepafrica/africa-population-mauritania")
105
- train = ds["train"].to_pandas()
106
- test = ds["test"].to_pandas()
107
 
108
- print(train.shape)
109
- train.head()
 
 
110
  ```
111
 
112
- ---
113
-
114
- ## Schema
115
-
116
- | Column | Type | Null % | Range / Sample Values |
117
- |---|---|---|---|
118
- | `year` | float64 | 4.3% | 2001.0 – 2023.0 (mean 2011.0909) |
119
- | `country` | object | 0.0% | Mauritania, #country +name |
120
- | `iso` | object | 0.0% | MRT, #country +code |
121
- | `disaster_group` | object | 0.0% | Natural, #cause +group |
122
- | `disaster_subroup` | object | 0.0% | Hydrological, Climatological, #cause +subgroup |
123
- | `disaster_type` | object | 0.0% | Flood, Drought, #cause +type |
124
- | `disaster_subtype` | object | 0.0% | Riverine flood, Drought, Flood (General) |
125
- | `total_events` | float64 | 4.3% | 1.0 – 2.0 (mean 1.0909) |
126
- | `total_affected` | float64 | 4.3% | 1619.0 – 3893774.0 (mean 402097.3182) |
127
- | `total_deaths` | float64 | 52.2% | 1.0 – 25.0 (mean 8.9091) |
128
- | `cpi` | float64 | 4.3% | 56.4466 – 97.135 (mean 71.4836) |
129
- | `esa_source` | object | 0.0% | HDX |
130
- | `esa_processed` | object | 0.0% | 2026-04-29 |
131
-
132
- ---
133
-
134
- ## Numeric Summary
135
 
136
- | Column | Min | Max | Mean | Median |
137
- |---|---|---|---|---|
138
- | `year` | 2001.0 | 2023.0 | 2011.0909 | 2010.0 |
139
- | `total_events` | 1.0 | 2.0 | 1.0909 | 1.0 |
140
- | `total_affected` | 1619.0 | 3893774.0 | 402097.3182 | 24250.0 |
141
- | `total_deaths` | 1.0 | 25.0 | 8.9091 | 8.0 |
142
- | `cpi` | 56.4466 | 97.135 | 71.4836 | 69.5133 |
143
 
144
- ---
 
 
 
 
145
 
146
- ## Curation
147
 
148
- Raw data was downloaded from HDX via the CKAN API and converted to Parquet. Column names were lowercased and standardised to snake_case. Common missing-value markers (`N/A`, `null`, `none`, `-`, `unknown`, `no data`, `#N/A`) were unified to `NaN`. 2 column(s) with >80% missing values were removed: `total_damage_usd_original`, `total_damage_usd_adjusted`. 4 column(s) were cast from string to numeric or datetime based on parse-success rate (>85% threshold). The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.
 
 
 
149
 
150
- ---
151
 
152
- ## Limitations
 
 
 
 
153
 
154
- - Data originates from Centre for Research on the Epidemiology of Disasters and has not been independently validated by ESA.
155
- - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
156
- - The following columns have >20% missing values and should be treated with caution in modelling: `total_deaths`.
157
- - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/emdat-country-profiles-mrt) for the publisher's own methodology notes and caveats.
158
 
159
- ---
 
 
 
160
 
161
  ## Citation
162
 
163
  ```bibtex
164
- @dataset{hdx_africa_population_mauritania,
165
- title = {EM-DAT - Country Profiles, Mauritania},
166
- author = {Centre for Research on the Epidemiology of Disasters},
167
- year = {2026},
168
- url = {https://data.humdata.org/dataset/emdat-country-profiles-mrt},
169
- note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
 
170
  }
171
  ```
172
 
 
 
 
 
 
 
 
 
 
 
173
  ---
174
 
175
- *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*
 
1
  ---
2
+ license: other
 
 
 
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
+ - "africa"
13
+ - "electric-sheep-africa"
14
+ - "open-data"
15
+ - "metadata-backed"
16
+ - "humanitarian-development"
17
+ - "parquet"
18
+ - "tabular"
19
+ - "text"
20
+ - "humanitarian"
21
+ - "hdx"
22
+ - "affected-population"
23
+ - "economics"
24
+ - "fatalities"
25
+ - "hxl"
26
+ - "natural-disasters"
27
+ - "mrt"
28
+ pretty_name: "EM-DAT - Country Profiles, Mauritania | Africa (original)"
29
  ---
30
 
31
+ # EM-DAT - Country Profiles, Mauritania | Africa (original)
32
 
33
+ **Size category:** `n<1K` - **Formats:** `parquet` - **Sector:** humanitarian_development - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
34
 
35
+ ![size](https://img.shields.io/badge/size-n%3C1K-blue)
36
+ ![sector](https://img.shields.io/badge/sector-humanitarian_development-green)
37
+ ![downloads](https://img.shields.io/badge/HF_downloads-9-orange)
38
+ ![license](https://img.shields.io/badge/license-other-lightgrey)
 
39
 
40
+ ## TL;DR
41
 
42
+ This dataset is part of the Electric Sheep Africa catalog on Hugging Face. It is indexed for African data discovery with standardized metadata, loading guidance, provenance notes, and analyst-oriented context.
43
 
44
+ ## What This Dataset Covers
45
 
46
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
47
 
48
+ Dataset context from the existing Hugging Face card: EM-DAT - Country Profiles, Mauritania Publisher: Centre for Research on the Epidemiology of Disasters · Source: HDX · License: hdx-other · Updated: 2026-04-24 Abstract Aggregated figures for natural hazard related events in EM-DAT: Mauritania Documentation on the Country Profiles available here How to cite the EM-DAT Project here Main dataset on HDX: EM-DAT - Country Profiles More on the EM-DAT database : website / data portal Each line corresponds to a given… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-population-mauritania.
49
 
50
+ ## Dataset Profile
 
 
 
 
 
51
 
52
+ | Field | Value |
 
 
 
 
 
 
 
 
53
  |---|---|
54
+ | Hugging Face repo | [`electricsheepafrica/africa-population-mauritania`](https://huggingface.co/datasets/electricsheepafrica/africa-population-mauritania) |
55
+ | Sector | humanitarian_development |
56
+ | Topic tags | humanitarian, hdx, electric-sheep-africa, affected-population, economics, fatalities, hxl, natural-disasters, mrt |
57
+ | Modalities | `tabular`, `text` |
58
+ | Formats | `parquet` |
59
+ | Size category | `n<1K` |
60
+ | Countries | Mauritania |
61
+ | ISO3 coverage | `MRT` |
62
+ | Last modified on HF | `2026-04-29 17:55:43+00:00` |
63
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
64
+
65
+ ## How To Read This Dataset
66
+
67
+ - Start from the repository files and the dataset viewer when available.
68
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
69
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
70
+ - Preserve missing values until you have a defensible imputation rule.
71
+
72
+ ## Usage
 
 
 
 
 
 
73
 
74
  ```python
75
  from datasets import load_dataset
76
 
77
+ ds = load_dataset("electricsheepafrica/africa-population-mauritania")
78
+ print(ds)
 
79
 
80
+ split_name = next(iter(ds))
81
+ table = ds[split_name]
82
+ print(table.features)
83
+ print(table[:3])
84
  ```
85
 
86
+ ### Convert To Pandas When Tabular
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
+ ```python
89
+ from datasets import Dataset
 
 
 
 
 
90
 
91
+ first_split = ds[next(iter(ds))]
92
+ if isinstance(first_split, Dataset):
93
+ df = first_split.to_pandas()
94
+ print(df.head())
95
+ ```
96
 
97
+ ## Data Quality Notes
98
 
99
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
100
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
101
+ - Metadata gaps from the inventory: upstream_publisher.
102
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
103
 
104
+ ## Source And Provenance
105
 
106
+ - **Source context:** original
107
+ - **Publisher/source attribution:** original
108
+ - **License:** Source-specific or other license
109
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-population-mauritania](https://huggingface.co/datasets/electricsheepafrica/africa-population-mauritania)
110
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
111
 
112
+ ## Suggested Analyses
 
 
 
113
 
114
+ - Inspect schema and missingness before modeling.
115
+ - Profile variables by geography, time, and subgroup columns where present.
116
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
117
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
118
 
119
  ## Citation
120
 
121
  ```bibtex
122
+ @misc{electric_sheep_africa_africa_population_mauritania_2026,
123
+ title = {EM-DAT - Country Profiles, Mauritania | Africa (original)},
124
+ author = {original},
125
+ year = {2026},
126
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-population-mauritania},
127
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
128
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-population-mauritania}}
129
  }
130
  ```
131
 
132
+ ## License
133
+
134
+ Released under Source-specific or other license.
135
+
136
+ Original source rights remain with the original publisher or data provider. Electric Sheep Africa engineering standardizes discovery metadata, documentation, and usage guidance for analysis on Hugging Face.
137
+
138
+ ## About Electric Sheep Africa
139
+
140
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
141
+
142
  ---
143
 
144
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.