Olaroti commited on
Commit
9b9f360
·
verified ·
1 Parent(s): d531250

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +99 -170
README.md CHANGED
@@ -1,212 +1,141 @@
1
  ---
2
- annotations_creators:
3
- - no-annotation
4
- language_creators:
5
- - found
6
  language:
7
  - en
8
- license: cc-by-4.0
9
- multilinguality:
10
- - monolingual
 
11
  size_categories:
12
  - n<1K
13
- source_datasets:
14
- - original
15
- task_categories:
16
- - other
17
- task_ids: []
18
  tags:
19
- - africa
20
- - humanitarian
21
- - hdx
22
- - electric-sheep-africa
23
- - baseline-population
24
- - gazetteer
25
- - nam
26
- pretty_name: "Namibia - Subnational Population Statistics"
27
- dataset_info:
28
- splits:
29
- - name: train
30
- num_examples: 0
31
- - name: test
32
- num_examples: 0
33
  ---
34
 
35
- # Namibia - Subnational Population Statistics
36
 
37
- **Publisher:** UNFPA · **Source:** [HDX](https://data.humdata.org/dataset/cod-ps-nam) · **License:** `cc-by-igo` · **Updated:** 2025-04-08
38
 
39
- ---
 
 
 
40
 
41
- ## Abstract
42
 
43
- Namibia administrative level 0-2 sex and age disaggregated 2023 population statistic projections
44
-
45
- REFERENCE YEAR: 2023
46
-
47
- The CSV files are suitable for database or GIS linkage to the [Namibia administrative level 0-2 boundaries](https://data.humdata.org/dataset/cod-ab-nam) layers using the ADM0, ADM1, and ADM2_PCODE fields.
48
 
49
- Each row in this dataset represents country-level aggregates. Data was last updated on HDX on 2025-04-08. Geographic scope: **NAM**.
50
 
51
- *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
52
 
53
- ---
54
 
55
- ## Dataset Characteristics
56
 
57
- | | |
58
  |---|---|
59
- | **Domain** | Demographics and population |
60
- | **Unit of observation** | Country-level aggregates |
61
- | **Rows (total)** | 1 |
62
- | **Columns** | 59 (55 numeric, 4 categorical, 0 datetime) |
63
- | **Train split** | 0 rows |
64
- | **Test split** | 0 rows |
65
- | **Geographic scope** | NAM |
66
- | **Publisher** | UNFPA |
67
- | **HDX last updated** | 2025-04-08 |
68
-
69
- ---
70
-
71
- ## Variables
72
-
73
- **Geographic** `year` (range 2023.0–2023.0), `iso3` (NAM).
74
-
75
- **Identifier / Metadata** `esa_source` (HDX), `esa_processed` (2026-04-04).
76
-
77
- **Other** — `adm0_en` (Namibia), `f_tl` (range 1414564.0–1414564.0), `m_tl` (range 1362668.0–1362668.0), `t_tl` (range 2777232.0–2777232.0), `f_00_04` (range 161482.0–161482.0) and 50 others.
78
-
79
- ---
80
-
81
- ## Quick Start
82
 
83
  ```python
84
  from datasets import load_dataset
85
 
86
- ds = load_dataset("electricsheepafrica/africa-cod-ps-nam")
87
- train = ds["train"].to_pandas()
88
- test = ds["test"].to_pandas()
89
 
90
- print(train.shape)
91
- train.head()
 
 
92
  ```
93
 
94
- ---
95
-
96
- ## Schema
97
-
98
- | Column | Type | Null % | Range / Sample Values |
99
- |---|---|---|---|
100
- | `year` | int64 | 0.0% | 2023.0 – 2023.0 (mean 2023.0) |
101
- | `iso3` | object | 0.0% | NAM |
102
- | `adm0_en` | object | 0.0% | Namibia |
103
- | `f_tl` | int64 | 0.0% | 1414564.0 – 1414564.0 (mean 1414564.0) |
104
- | `m_tl` | int64 | 0.0% | 1362668.0 – 1362668.0 (mean 1362668.0) |
105
- | `t_tl` | int64 | 0.0% | 2777232.0 – 2777232.0 (mean 2777232.0) |
106
- | `f_00_04` | int64 | 0.0% | 161482.0 – 161482.0 (mean 161482.0) |
107
- | `f_05_09` | int64 | 0.0% | 158236.0 – 158236.0 (mean 158236.0) |
108
- | `f_10_14` | int64 | 0.0% | 152756.0 – 152756.0 (mean 152756.0) |
109
- | `f_15_19` | int64 | 0.0% | 144224.0 – 144224.0 (mean 144224.0) |
110
- | `f_20_24` | int64 | 0.0% | 133498.0 – 133498.0 (mean 133498.0) |
111
- | `f_25_29` | int64 | 0.0% | 122089.0 – 122089.0 (mean 122089.0) |
112
- | `f_30_34` | int64 | 0.0% | 110111.0 – 110111.0 (mean 110111.0) |
113
- | `f_35_39` | int64 | 0.0% | 92105.0 – 92105.0 (mean 92105.0) |
114
- | `f_40_44` | int64 | 0.0% | 80564.0 – 80564.0 (mean 80564.0) |
115
- | `f_45_49` | int64 | 0.0% | 65192.0 – 65192.0 (mean 65192.0) |
116
- | `f_50_54` | int64 | 0.0% | 53518.0 – 53518.0 (mean 53518.0) |
117
- | `f_55_59` | int64 | 0.0% | 43633.0 – 43633.0 (mean 43633.0) |
118
- | `f_60_64` | int64 | 0.0% | 33931.0 – 33931.0 (mean 33931.0) |
119
- | `f_65_69` | int64 | 0.0% | 23509.0 – 23509.0 (mean 23509.0) |
120
- | `f_70_74` | int64 | 0.0% | 16524.0 – 16524.0 (mean 16524.0) |
121
- | `f_75_79` | int64 | 0.0% | 11200.0 – 11200.0 (mean 11200.0) |
122
- | `f_80plus` | int64 | 0.0% | |
123
- | `m_00_04` | int64 | 0.0% | |
124
- | `m_05_09` | int64 | 0.0% | |
125
- | `m_10_14` | int64 | 0.0% | |
126
- | `m_15_19` | int64 | 0.0% | |
127
- | `m_20_24` | int64 | 0.0% | |
128
- | `m_25_29` | int64 | 0.0% | |
129
- | `m_30_34` | int64 | 0.0% | |
130
- | `m_35_39` | int64 | 0.0% | |
131
- | `m_40_44` | int64 | 0.0% | |
132
- | `m_45_49` | int64 | 0.0% | |
133
- | `m_50_54` | int64 | 0.0% | |
134
- | `m_55_59` | int64 | 0.0% | |
135
- | `m_60_64` | int64 | 0.0% | |
136
- | `m_65_69` | int64 | 0.0% | |
137
- | `m_70_74` | int64 | 0.0% | |
138
- | `m_75_79` | int64 | 0.0% | |
139
- | `m_80plus` | int64 | 0.0% | |
140
- | `t_00_04` | int64 | 0.0% | |
141
- | `t_05_09` | int64 | 0.0% | |
142
- | `t_10_14` | int64 | 0.0% | |
143
- | `t_15_19` | int64 | 0.0% | |
144
- | `t_20_24` | int64 | 0.0% | |
145
- | `t_25_29` | int64 | 0.0% | |
146
- | `t_30_34` | int64 | 0.0% | |
147
- | `t_35_39` | int64 | 0.0% | |
148
- | `t_40_44` | int64 | 0.0% | |
149
- | `t_45_49` | int64 | 0.0% | |
150
- | `t_50_54` | int64 | 0.0% | |
151
- | `t_55_59` | int64 | 0.0% | |
152
- | `t_60_64` | int64 | 0.0% | |
153
- | `t_65_69` | int64 | 0.0% | |
154
- | `t_70_74` | int64 | 0.0% | |
155
- | `t_75_79` | int64 | 0.0% | |
156
- | `t_80plus` | int64 | 0.0% | |
157
- | `esa_source` | object | 0.0% | HDX |
158
- | `esa_processed` | object | 0.0% | 2026-04-04 |
159
-
160
- ---
161
 
162
- ## Numeric Summary
163
-
164
- | Column | Min | Max | Mean | Median |
165
- |---|---|---|---|---|
166
- | `year` | 2023.0 | 2023.0 | 2023.0 | 2023.0 |
167
- | `f_tl` | 1414564.0 | 1414564.0 | 1414564.0 | 1414564.0 |
168
- | `m_tl` | 1362668.0 | 1362668.0 | 1362668.0 | 1362668.0 |
169
- | `t_tl` | 2777232.0 | 2777232.0 | 2777232.0 | 2777232.0 |
170
- | `f_00_04` | 161482.0 | 161482.0 | 161482.0 | 161482.0 |
171
- | `f_05_09` | 158236.0 | 158236.0 | 158236.0 | 158236.0 |
172
- | `f_10_14` | 152756.0 | 152756.0 | 152756.0 | 152756.0 |
173
- | `f_15_19` | 144224.0 | 144224.0 | 144224.0 | 144224.0 |
174
- | `f_20_24` | 133498.0 | 133498.0 | 133498.0 | 133498.0 |
175
- | `f_25_29` | 122089.0 | 122089.0 | 122089.0 | 122089.0 |
176
- | `f_30_34` | 110111.0 | 110111.0 | 110111.0 | 110111.0 |
177
- | `f_35_39` | 92105.0 | 92105.0 | 92105.0 | 92105.0 |
178
- | `f_40_44` | 80564.0 | 80564.0 | 80564.0 | 80564.0 |
179
- | `f_45_49` | 65192.0 | 65192.0 | 65192.0 | 65192.0 |
180
- | `f_50_54` | 53518.0 | 53518.0 | 53518.0 | 53518.0 |
181
 
182
- ---
 
 
 
 
183
 
184
- ## Curation
185
 
186
- 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: `adm0_pcode`. The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.
 
 
 
187
 
188
- ---
189
 
190
- ## Limitations
 
 
 
 
191
 
192
- - Data originates from UNFPA and has not been independently validated by ESA.
193
- - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
194
- - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/cod-ps-nam) for the publisher's own methodology notes and caveats.
195
 
196
- ---
 
 
 
197
 
198
  ## Citation
199
 
200
  ```bibtex
201
- @dataset{hdx_africa_cod_ps_nam,
202
- title = {Namibia - Subnational Population Statistics},
203
- author = {UNFPA},
204
- year = {2025},
205
- url = {https://data.humdata.org/dataset/cod-ps-nam},
206
- note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
 
207
  }
208
  ```
209
 
 
 
 
 
 
 
 
 
 
 
210
  ---
211
 
212
- *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) Africa's ML dataset infrastructure. Lagos, Nigeria.*
 
1
  ---
2
+ license: cc-by-4.0
 
 
 
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
+ - "baseline-population"
23
+ - "gazetteer"
24
+ - "nam"
25
+ pretty_name: "Namibia - Subnational Population Statistics | Africa (original)"
26
  ---
27
 
28
+ # Namibia - Subnational Population Statistics | Africa (original)
29
 
30
+ **Size category:** `n<1K` - **Formats:** `parquet` - **Sector:** humanitarian_development - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
31
 
32
+ ![size](https://img.shields.io/badge/size-n%3C1K-blue)
33
+ ![sector](https://img.shields.io/badge/sector-humanitarian_development-green)
34
+ ![downloads](https://img.shields.io/badge/HF_downloads-26-orange)
35
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-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
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
44
 
45
+ Dataset context from the existing Hugging Face card: Namibia - Subnational Population Statistics Publisher: UNFPA · Source: HDX · License: cc-by-igo · Updated: 2025-04-08 Abstract Namibia administrative level 0-2 sex and age disaggregated 2023 population statistic projections REFERENCE YEAR: 2023 The CSV files are suitable for database or GIS linkage to the Namibia administrative level 0-2 boundaries layers using the ADM0, ADM1, and ADM2_PCODE fields. Each row in this dataset represents country-level aggregates. Data was… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-cod-ps-nam.
46
 
47
+ ## Dataset Profile
48
 
49
+ | Field | Value |
50
  |---|---|
51
+ | Hugging Face repo | [`electricsheepafrica/africa-cod-ps-nam`](https://huggingface.co/datasets/electricsheepafrica/africa-cod-ps-nam) |
52
+ | Sector | humanitarian_development |
53
+ | Topic tags | humanitarian, hdx, electric-sheep-africa, baseline-population, gazetteer, nam |
54
+ | Modalities | `tabular`, `text` |
55
+ | Formats | `parquet` |
56
+ | Size category | `n<1K` |
57
+ | Countries | Namibia |
58
+ | ISO3 coverage | `NAM` |
59
+ | Last modified on HF | `2026-04-04 13:50:46+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-cod-ps-nam")
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:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
106
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-cod-ps-nam](https://huggingface.co/datasets/electricsheepafrica/africa-cod-ps-nam)
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_cod_ps_nam_2026,
120
+ title = {Namibia - Subnational Population Statistics | Africa (original)},
121
+ author = {original},
122
+ year = {2026},
123
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-cod-ps-nam},
124
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
125
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-cod-ps-nam}}
126
  }
127
  ```
128
 
129
+ ## License
130
+
131
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
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`.