Olaroti commited on
Commit
f29ce17
·
verified ·
1 Parent(s): 21f31ac

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +98 -119
README.md CHANGED
@@ -1,162 +1,141 @@
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
- - 1K<n<10K
13
- source_datasets:
14
- - original
15
  task_categories:
16
  - tabular-classification
17
  - tabular-regression
18
- task_ids: []
 
 
19
  tags:
20
- - africa
21
- - humanitarian
22
- - hdx
23
- - electric-sheep-africa
24
- - hxl
25
- - indicators
26
- - tun
27
- pretty_name: "Tunisia - Historical Health Indicators"
28
- dataset_info:
29
- splits:
30
- - name: train
31
- num_examples: 7397
32
- - name: test
33
- num_examples: 1849
34
  ---
35
 
36
- # Tunisia - Historical Health Indicators
37
 
38
- **Publisher:** World Health Organization · **Source:** [HDX](https://data.humdata.org/dataset/who-historical-data-for-tun) · **License:** `hdx-other` · **Updated:** 2025-02-07
39
 
40
- ---
 
 
 
41
 
42
- ## Abstract
43
 
44
- This dataset contains historical data from WHO's [data portal](https://www.who.int/gho/en/).
45
 
46
- Each row in this dataset represents first-level administrative unit observations. Data was last updated on HDX on 2025-02-07. Geographic scope: **TUN**.
47
 
48
- *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
49
 
50
- ---
51
 
52
- ## Dataset Characteristics
53
 
54
- | | |
55
  |---|---|
56
- | **Domain** | Humanitarian and development data |
57
- | **Unit of observation** | First-level administrative unit observations |
58
- | **Rows (total)** | 9,247 |
59
- | **Columns** | 18 (6 numeric, 12 categorical, 0 datetime) |
60
- | **Train split** | 7,397 rows |
61
- | **Test split** | 1,849 rows |
62
- | **Geographic scope** | TUN |
63
- | **Publisher** | World Health Organization |
64
- | **HDX last updated** | 2025-02-07 |
65
-
66
- ---
67
-
68
- ## Variables
69
-
70
- **Geographic** `gho_display` (Mean BMI (kg/m&#xb2;) (crude estimate), Alcohol, recorded per capita (15+) consumption (in litres of pure alcohol), Adolescent mortality rate (per 1 000 age specific cohort)), `year_display` (range 1961.0–2025.0), `startyear` (range 1961.0–2025.0), `endyear` (range 1961.0–2025.0), `region_code` (EMR, #region+code) and 4 others.
71
-
72
- **Outcome / Measurement** `value` (No data, No, Yes).
73
-
74
- **Identifier / Metadata** — `gho_code` (NCD_BMI_MEANC, SA_0000001400_ARCHIVED, CHILDMORT10TO19), `dimension_code` (SEX_FMLE, SEX_MLE, SEX_BTSX), `dimension_name` (Female, Male, Both sexes), `esa_source`, `esa_processed`.
75
-
76
- **Other** — `numeric` (range 0.0–2071202991.0), `low` (range 0.0–97577.0), `high` (range 0.0–145576.0).
77
-
78
- ---
79
-
80
- ## Quick Start
81
 
82
  ```python
83
  from datasets import load_dataset
84
 
85
- ds = load_dataset("electricsheepafrica/africa-who-historical-data-for-tun")
86
- train = ds["train"].to_pandas()
87
- test = ds["test"].to_pandas()
88
 
89
- print(train.shape)
90
- train.head()
 
 
91
  ```
92
 
93
- ---
94
-
95
- ## Schema
96
-
97
- | Column | Type | Null % | Range / Sample Values |
98
- |---|---|---|---|
99
- | `gho_code` | object | 0.0% | NCD_BMI_MEANC, SA_0000001400_ARCHIVED, CHILDMORT10TO19 |
100
- | `gho_display` | object | 0.0% | Mean BMI (kg/m&#xb2;) (crude estimate), Alcohol, recorded per capita (15+) consumption (in litres of pure alcohol), Adolescent mortality rate (per 1 000 age specific cohort) |
101
- | `year_display` | float64 | 0.0% | 1961.0 – 2025.0 (mean 2009.3673) |
102
- | `startyear` | float64 | 0.0% | 1961.0 – 2025.0 (mean 2009.3526) |
103
- | `endyear` | float64 | 0.0% | 1961.0 – 2025.0 (mean 2009.3673) |
104
- | `region_code` | object | 0.0% | EMR, #region+code |
105
- | `region_display` | object | 0.0% | Eastern Mediterranean, #region+name |
106
- | `country_code` | object | 0.0% | TUN, #country+code |
107
- | `country_display` | object | 0.0% | Tunisia, #country+name |
108
- | `dimension_type` | object | 21.3% | SEX, WEALTHDECILE, DHSMICSGEOREGION |
109
- | `dimension_code` | object | 21.3% | SEX_FMLE, SEX_MLE, SEX_BTSX |
110
- | `dimension_name` | object | 22.3% | Female, Male, Both sexes |
111
- | `numeric` | float64 | 25.8% | 0.0 – 2071202991.0 (mean 1226387.6764) |
112
- | `value` | object | 1.2% | No data, No, Yes |
113
- | `low` | float64 | 46.8% | 0.0 – 97577.0 (mean 108.1606) |
114
- | `high` | float64 | 46.9% | 0.0 – 145576.0 (mean 185.4945) |
115
- | `esa_source` | object | 0.0% | |
116
- | `esa_processed` | object | 0.0% | |
117
-
118
- ---
119
-
120
- ## Numeric Summary
121
 
122
- | Column | Min | Max | Mean | Median |
123
- |---|---|---|---|---|
124
- | `year_display` | 1961.0 | 2025.0 | 2009.3673 | 2011.0 |
125
- | `startyear` | 1961.0 | 2025.0 | 2009.3526 | 2011.0 |
126
- | `endyear` | 1961.0 | 2025.0 | 2009.3673 | 2011.0 |
127
- | `numeric` | 0.0 | 2071202991.0 | 1226387.6764 | 28.2149 |
128
- | `low` | 0.0 | 97577.0 | 108.1606 | 24.699 |
129
- | `high` | 0.0 | 145576.0 | 185.4945 | 36.4645 |
130
 
131
- ---
 
 
 
 
132
 
133
- ## Curation
134
 
135
- 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`. 1 column(s) with >80% missing values were removed: `gho_url`. 66 exact duplicate rows were removed. 6 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.
 
 
 
136
 
137
- ---
138
 
139
- ## Limitations
 
 
 
 
140
 
141
- - Data originates from World Health Organization and has not been independently validated by ESA.
142
- - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
143
- - The following columns have >20% missing values and should be treated with caution in modelling: `dimension_type`, `dimension_code`, `dimension_name`, `numeric`, `low`, `high`.
144
- - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/who-historical-data-for-tun) for the publisher's own methodology notes and caveats.
145
 
146
- ---
 
 
 
147
 
148
  ## Citation
149
 
150
  ```bibtex
151
- @dataset{hdx_africa_who_historical_data_for_tun,
152
- title = {Tunisia - Historical Health Indicators},
153
- author = {World Health Organization},
154
- year = {2025},
155
- url = {https://data.humdata.org/dataset/who-historical-data-for-tun},
156
- note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
 
157
  }
158
  ```
159
 
 
 
 
 
 
 
 
 
 
 
160
  ---
161
 
162
- *[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
+ - 1K<n<10K
11
  tags:
12
+ - "africa"
13
+ - "electric-sheep-africa"
14
+ - "open-data"
15
+ - "metadata-backed"
16
+ - "health"
17
+ - "parquet"
18
+ - "tabular"
19
+ - "text"
20
+ - "humanitarian"
21
+ - "hdx"
22
+ - "hxl"
23
+ - "indicators"
24
+ - "tun"
25
+ pretty_name: "Tunisia - Historical Health Indicators | Africa (original)"
26
  ---
27
 
28
+ # Tunisia - Historical Health Indicators | Africa (original)
29
 
30
+ **Size category:** `1K<n<10K` - **Formats:** `parquet` - **Sector:** health - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
31
 
32
+ ![size](https://img.shields.io/badge/size-1K%3Cn%3C10K-blue)
33
+ ![sector](https://img.shields.io/badge/sector-health-green)
34
+ ![downloads](https://img.shields.io/badge/HF_downloads-9-orange)
35
+ ![license](https://img.shields.io/badge/license-other-lightgrey)
36
 
37
+ ## TL;DR
38
 
39
+ 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.
40
 
41
+ ## What This Dataset Covers
42
 
43
+ Health datasets help researchers examine disease burden, service delivery, risk factors, outcomes, and public-health program performance.
44
 
45
+ Dataset context from the existing Hugging Face card: Tunisia - Historical Health Indicators Publisher: World Health Organization · Source: HDX · License: hdx-other · Updated: 2025-02-07 Abstract This dataset contains historical data from WHO's data portal. Each row in this dataset represents first-level administrative unit observations. Data was last updated on HDX on 2025-02-07. Geographic scope: TUN. Curated into ML-ready Parquet format by Electric Sheep Africa. Dataset Characteristics Domain… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-who-historical-data-for-tun.
46
 
47
+ ## Dataset Profile
48
 
49
+ | Field | Value |
50
  |---|---|
51
+ | Hugging Face repo | [`electricsheepafrica/africa-who-historical-data-for-tun`](https://huggingface.co/datasets/electricsheepafrica/africa-who-historical-data-for-tun) |
52
+ | Sector | health |
53
+ | Topic tags | humanitarian, hdx, electric-sheep-africa, hxl, indicators, tun |
54
+ | Modalities | `tabular`, `text` |
55
+ | Formats | `parquet` |
56
+ | Size category | `1K<n<10K` |
57
+ | Countries | Tunisia |
58
+ | ISO3 coverage | `TUN` |
59
+ | Last modified on HF | `2026-04-24 16:09:49+00:00` |
60
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
61
+
62
+ ## How To Read This Dataset
63
+
64
+ - Start from the repository files and the dataset viewer when available.
65
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
66
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
67
+ - Preserve missing values until you have a defensible imputation rule.
68
+
69
+ ## Usage
 
 
 
 
 
 
70
 
71
  ```python
72
  from datasets import load_dataset
73
 
74
+ ds = load_dataset("electricsheepafrica/africa-who-historical-data-for-tun")
75
+ print(ds)
 
76
 
77
+ split_name = next(iter(ds))
78
+ table = ds[split_name]
79
+ print(table.features)
80
+ print(table[:3])
81
  ```
82
 
83
+ ### Convert To Pandas When Tabular
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
 
85
+ ```python
86
+ from datasets import Dataset
 
 
 
 
 
 
87
 
88
+ first_split = ds[next(iter(ds))]
89
+ if isinstance(first_split, Dataset):
90
+ df = first_split.to_pandas()
91
+ print(df.head())
92
+ ```
93
 
94
+ ## Data Quality Notes
95
 
96
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
97
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
98
+ - Metadata gaps from the inventory: upstream_publisher.
99
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
100
 
101
+ ## Source And Provenance
102
 
103
+ - **Source context:** original
104
+ - **Publisher/source attribution:** original
105
+ - **License:** Source-specific or other license
106
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-who-historical-data-for-tun](https://huggingface.co/datasets/electricsheepafrica/africa-who-historical-data-for-tun)
107
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
108
 
109
+ ## Suggested Analyses
 
 
 
110
 
111
+ - Inspect schema and missingness before modeling.
112
+ - Profile variables by geography, time, and subgroup columns where present.
113
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
114
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
115
 
116
  ## Citation
117
 
118
  ```bibtex
119
+ @misc{electric_sheep_africa_africa_who_historical_data_for_tun_2026,
120
+ title = {Tunisia - Historical Health Indicators | Africa (original)},
121
+ author = {original},
122
+ year = {2026},
123
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-who-historical-data-for-tun},
124
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
125
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-who-historical-data-for-tun}}
126
  }
127
  ```
128
 
129
+ ## License
130
+
131
+ Released under Source-specific or other license.
132
+
133
+ 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.
134
+
135
+ ## About Electric Sheep Africa
136
+
137
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
138
+
139
  ---
140
 
141
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.