Olaroti commited on
Commit
f0b9dac
·
verified ·
1 Parent(s): 40fc9d7

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +102 -117
README.md CHANGED
@@ -1,160 +1,145 @@
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
  - tabular-classification
17
  - tabular-regression
18
- task_ids: []
 
 
19
  tags:
20
- - africa
21
- - humanitarian
22
- - hdx
23
- - electric-sheep-africa
24
- - asylum-seekers
25
- - internally-displaced-persons-idp
26
- - population
27
- - refugees
28
- - stateless-persons
29
- - nam
30
- pretty_name: "Namibia - Data on forcibly displaced populations and stateless persons"
31
- dataset_info:
32
- splits:
33
- - name: train
34
- num_examples: 274
35
- - name: test
36
- num_examples: 68
 
37
  ---
38
 
39
- # Namibia - Data on forcibly displaced populations and stateless persons
40
 
41
- **Publisher:** UNHCR - The UN Refugee Agency · **Source:** [HDX](https://data.humdata.org/dataset/unhcr-population-data-for-nam) · **License:** `cc-by-igo` · **Updated:** 2026-02-25
42
 
43
- ---
 
 
 
44
 
45
- ## Abstract
46
 
47
- Data collated by UNHCR, containing information about forcibly displaced populations and stateless persons, spanning across more than 70 years of statistical activities. The data includes the countries / territories of asylum and origin. Specific resources are available for end-year population totals, demographics, asylum applications, decisions, and solutions availed by refugees and IDPs (resettlement, naturalisation or returns).
48
 
49
- Each row in this dataset represents first-level administrative unit observations. Data was last updated on HDX on 2026-02-25. 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** | First-level administrative unit observations |
61
- | **Rows (total)** | 343 |
62
- | **Columns** | 14 (8 numeric, 6 categorical, 0 datetime) |
63
- | **Train split** | 274 rows |
64
- | **Test split** | 68 rows |
65
- | **Geographic scope** | NAM |
66
- | **Publisher** | UNHCR - The UN Refugee Agency |
67
- | **HDX last updated** | 2026-02-25 |
68
-
69
- ---
70
-
71
- ## Variables
72
-
73
- **Geographic** `year` (range 1966.0–2025.0), `country_of_origin_code` (NAM), `country_of_asylum_code` (BWA, ZMB, USA), `country_of_origin_name` (Namibia), `country_of_asylum_name` (Botswana, Zambia, United States of America) and 4 others.
74
-
75
- **Identifier / Metadata** `refugees` (range 0.0–70010.0), `esa_source` (HDX), `esa_processed` (2026-04-04).
76
-
77
- **Other** — `other_people_in_need_of_international_protection` (range 0.0–0.0), `others_of_concern_to_unhcr` (range 0.0–45.0).
78
-
79
- ---
80
-
81
- ## Quick Start
82
 
83
  ```python
84
  from datasets import load_dataset
85
 
86
- ds = load_dataset("electricsheepafrica/africa-unhcr-population-data-for-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% | 1966.0 – 2025.0 (mean 2002.6501) |
101
- | `country_of_origin_code` | object | 0.0% | NAM |
102
- | `country_of_asylum_code` | object | 0.0% | BWA, ZMB, USA |
103
- | `country_of_origin_name` | object | 0.0% | Namibia |
104
- | `country_of_asylum_name` | object | 0.0% | Botswana, Zambia, United States of America |
105
- | `refugees` | int64 | 0.0% | 0.0 – 70010.0 (mean 2373.5277) |
106
- | `asylum_seekers` | int64 | 0.0% | 0.0 – 1276.0 (mean 31.9125) |
107
- | `other_people_in_need_of_international_protection` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) |
108
- | `internally_displaced_persons` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) |
109
- | `stateless_persons` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) |
110
- | `others_of_concern_to_unhcr` | int64 | 0.0% | 0.0 – 45.0 (mean 0.8309) |
111
- | `host_community` | int64 | 0.0% | 0.0 – 0.0 (mean 0.0) |
112
- | `esa_source` | object | 0.0% | HDX |
113
- | `esa_processed` | object | 0.0% | 2026-04-04 |
114
-
115
- ---
116
-
117
- ## Numeric Summary
118
 
119
- | Column | Min | Max | Mean | Median |
120
- |---|---|---|---|---|
121
- | `year` | 1966.0 | 2025.0 | 2002.6501 | 2005.0 |
122
- | `refugees` | 0.0 | 70010.0 | 2373.5277 | 17.0 |
123
- | `asylum_seekers` | 0.0 | 1276.0 | 31.9125 | 0.0 |
124
- | `other_people_in_need_of_international_protection` | 0.0 | 0.0 | 0.0 | 0.0 |
125
- | `internally_displaced_persons` | 0.0 | 0.0 | 0.0 | 0.0 |
126
- | `stateless_persons` | 0.0 | 0.0 | 0.0 | 0.0 |
127
- | `others_of_concern_to_unhcr` | 0.0 | 45.0 | 0.8309 | 0.0 |
128
- | `host_community` | 0.0 | 0.0 | 0.0 | 0.0 |
129
 
130
- ---
 
 
 
 
131
 
132
- ## Curation
133
 
134
- 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`. The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.
 
 
 
135
 
136
- ---
137
 
138
- ## Limitations
 
 
 
 
139
 
140
- - Data originates from UNHCR - The UN Refugee Agency and has not been independently validated by ESA.
141
- - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
142
- - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/unhcr-population-data-for-nam) for the publisher's own methodology notes and caveats.
143
 
144
- ---
 
 
 
145
 
146
  ## Citation
147
 
148
  ```bibtex
149
- @dataset{hdx_africa_unhcr_population_data_for_nam,
150
- title = {Namibia - Data on forcibly displaced populations and stateless persons},
151
- author = {UNHCR - The UN Refugee Agency},
152
- year = {2026},
153
- url = {https://data.humdata.org/dataset/unhcr-population-data-for-nam},
154
- note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
 
155
  }
156
  ```
157
 
 
 
 
 
 
 
 
 
 
 
158
  ---
159
 
160
- *[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
+ - "asylum-seekers"
23
+ - "internally-displaced-persons-idp"
24
+ - "population"
25
+ - "refugees"
26
+ - "stateless-persons"
27
+ - "nam"
28
+ - "refugee"
29
+ pretty_name: "Namibia - Data on forcibly displaced populations and stateless persons | Africa (original)"
30
  ---
31
 
32
+ # Namibia - Data on forcibly displaced populations and stateless persons | Africa (original)
33
 
34
+ **Size category:** `n<1K` - **Formats:** `parquet` - **Sector:** humanitarian_development - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
35
 
36
+ ![size](https://img.shields.io/badge/size-n%3C1K-blue)
37
+ ![sector](https://img.shields.io/badge/sector-humanitarian_development-green)
38
+ ![downloads](https://img.shields.io/badge/HF_downloads-25-orange)
39
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
40
 
41
+ ## TL;DR
42
 
43
+ 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.
44
 
45
+ ## What This Dataset Covers
46
 
47
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
48
 
49
+ Dataset context from the existing Hugging Face card: Namibia - Data on forcibly displaced populations and stateless persons Publisher: UNHCR - The UN Refugee Agency · Source: HDX · License: cc-by-igo · Updated: 2026-02-25 Abstract Data collated by UNHCR, containing information about forcibly displaced populations and stateless persons, spanning across more than 70 years of statistical activities. The data includes the countries / territories of asylum and origin. Specific resources are available for end-year population… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-unhcr-population-data-for-nam.
50
 
51
+ ## Dataset Profile
52
 
53
+ | Field | Value |
54
  |---|---|
55
+ | Hugging Face repo | [`electricsheepafrica/africa-unhcr-population-data-for-nam`](https://huggingface.co/datasets/electricsheepafrica/africa-unhcr-population-data-for-nam) |
56
+ | Sector | humanitarian_development |
57
+ | Topic tags | humanitarian, hdx, electric-sheep-africa, asylum-seekers, internally-displaced-persons-idp, population, refugees, stateless-persons, nam |
58
+ | Modalities | `tabular`, `text` |
59
+ | Formats | `parquet` |
60
+ | Size category | `n<1K` |
61
+ | Countries | Namibia |
62
+ | ISO3 coverage | `NAM` |
63
+ | Last modified on HF | `2026-04-04 13:44:56+00:00` |
64
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
65
+
66
+ ## How To Read This Dataset
67
+
68
+ - Start from the repository files and the dataset viewer when available.
69
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
70
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
71
+ - Preserve missing values until you have a defensible imputation rule.
72
+
73
+ ## Usage
 
 
 
 
74
 
75
  ```python
76
  from datasets import load_dataset
77
 
78
+ ds = load_dataset("electricsheepafrica/africa-unhcr-population-data-for-nam")
79
+ print(ds)
 
80
 
81
+ split_name = next(iter(ds))
82
+ table = ds[split_name]
83
+ print(table.features)
84
+ print(table[:3])
85
  ```
86
 
87
+ ### Convert To Pandas When Tabular
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
 
89
+ ```python
90
+ from datasets import Dataset
 
 
 
 
 
 
 
 
91
 
92
+ first_split = ds[next(iter(ds))]
93
+ if isinstance(first_split, Dataset):
94
+ df = first_split.to_pandas()
95
+ print(df.head())
96
+ ```
97
 
98
+ ## Data Quality Notes
99
 
100
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
101
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
102
+ - Metadata gaps from the inventory: upstream_publisher.
103
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
104
 
105
+ ## Source And Provenance
106
 
107
+ - **Source context:** original
108
+ - **Publisher/source attribution:** original
109
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
110
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-unhcr-population-data-for-nam](https://huggingface.co/datasets/electricsheepafrica/africa-unhcr-population-data-for-nam)
111
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
112
 
113
+ ## Suggested Analyses
 
 
114
 
115
+ - Inspect schema and missingness before modeling.
116
+ - Profile variables by geography, time, and subgroup columns where present.
117
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
118
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
119
 
120
  ## Citation
121
 
122
  ```bibtex
123
+ @misc{electric_sheep_africa_africa_unhcr_population_data_for_nam_2026,
124
+ title = {Namibia - Data on forcibly displaced populations and stateless persons | Africa (original)},
125
+ author = {original},
126
+ year = {2026},
127
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-unhcr-population-data-for-nam},
128
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
129
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-unhcr-population-data-for-nam}}
130
  }
131
  ```
132
 
133
+ ## License
134
+
135
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
136
+
137
+ 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.
138
+
139
+ ## About Electric Sheep Africa
140
+
141
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
142
+
143
  ---
144
 
145
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.