Olaroti commited on
Commit
797a042
·
verified ·
1 Parent(s): 39c6855

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +98 -112
README.md CHANGED
@@ -1,155 +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
- - 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
- - food-security
25
- - integrated-food-security-phase-classification-ipc
26
- - gnb
27
- pretty_name: "Guinea-Bissau: Acute Food Insecurity Country Data"
28
- dataset_info:
29
- splits:
30
- - name: train
31
- num_examples: 11
32
- - name: test
33
- num_examples: 2
34
  ---
35
 
36
- # Guinea-Bissau: Acute Food Insecurity Country Data
37
 
38
- **Publisher:** Integrated Food Security Phase Classification (IPC) · **Source:** [HDX](https://data.humdata.org/dataset/guinea-bissau-acute-food-insecurity-country-data) · **License:** `other-pd-nr` · **Updated:** 2026-02-09
39
 
40
- ---
 
 
 
41
 
42
- ## Abstract
43
 
44
- The IPC Acute Food Insecurity (IPC AFI) classification provides strategically relevant information to decision makers that focuses on short-term objectives to prevent, mitigate or decrease severe food insecurity that threatens lives or livelihoods. This data has been produced by the National IPC Technical Working Groups for IPC population estimates since 2017. All national population figures are based on official country population estimates. IPC estimates are those published in country IPC reports.
45
-
46
- There is also a [global dataset](https://data.humdata.org/dataset/global-acute-food-insecurity-country-data).
47
 
48
- Each row in this dataset represents country-level aggregates. Temporal coverage is indicated by the `date_of_analysis`, `from` column(s). Geographic scope: **GNB**.
49
 
50
- *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
51
 
52
- ---
53
 
54
- ## Dataset Characteristics
55
 
56
- | | |
57
  |---|---|
58
- | **Domain** | Food security and nutrition |
59
- | **Unit of observation** | Country-level aggregates |
60
- | **Rows (total)** | 14 |
61
- | **Columns** | 11 (3 numeric, 5 categorical, 3 datetime) |
62
- | **Train split** | 11 rows |
63
- | **Test split** | 2 rows |
64
- | **Geographic scope** | GNB |
65
- | **Publisher** | Integrated Food Security Phase Classification (IPC) |
66
- | **HDX last updated** | 2026-02-09 |
67
-
68
- ---
69
-
70
- ## Variables
71
-
72
- **Geographic** `date_of_analysis`, `country` (GNB), `total_country_population` (range 1816450.0–1816450.0), `validity_period` (current, first projection).
73
-
74
- **Demographic** `percentage` (range 0.0–1.0).
75
-
76
- **Outcome / Measurement** — `phase` (all, 3+, 1), `number` (range 0.0–1816450.0).
77
-
78
- **Identifier / Metadata** — `esa_source` (HDX), `esa_processed` (2026-04-04).
79
-
80
- **Other** — `from`, `to`.
81
-
82
- ---
83
-
84
- ## Quick Start
85
 
86
  ```python
87
  from datasets import load_dataset
88
 
89
- ds = load_dataset("electricsheepafrica/hdx-guinea-bissau-acute-food-insecurity-country-data")
90
- train = ds["train"].to_pandas()
91
- test = ds["test"].to_pandas()
92
 
93
- print(train.shape)
94
- train.head()
 
 
95
  ```
96
 
97
- ---
98
 
99
- ## Schema
100
-
101
- | Column | Type | Null % | Range / Sample Values |
102
- |---|---|---|---|
103
- | `date_of_analysis` | datetime64[ns] | 0.0% | |
104
- | `country` | object | 0.0% | GNB |
105
- | `total_country_population` | int64 | 0.0% | 1816450.0 – 1816450.0 (mean 1816450.0) |
106
- | `validity_period` | object | 0.0% | current, first projection |
107
- | `from` | datetime64[ns] | 0.0% | |
108
- | `to` | datetime64[ns] | 0.0% | |
109
- | `phase` | object | 0.0% | all, 3+, 1 |
110
- | `number` | int64 | 0.0% | 0.0 – 1816450.0 (mean 538109.2857) |
111
- | `percentage` | float64 | 0.0% | 0.0 – 1.0 (mean 0.2957) |
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
- | `total_country_population` | 1816450.0 | 1816450.0 | 1816450.0 | 1816450.0 |
122
- | `number` | 0.0 | 1816450.0 | 538109.2857 | 146034.0 |
123
- | `percentage` | 0.0 | 1.0 | 0.2957 | 0.08 |
124
 
125
- ---
 
 
 
 
126
 
127
- ## Curation
128
 
129
- 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`. 3 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.
 
 
 
130
 
131
- ---
132
 
133
- ## Limitations
 
 
 
 
134
 
135
- - Data originates from Integrated Food Security Phase Classification (IPC) and has not been independently validated by ESA.
136
- - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
137
- - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/guinea-bissau-acute-food-insecurity-country-data) for the publisher's own methodology notes and caveats.
138
 
139
- ---
 
 
 
140
 
141
  ## Citation
142
 
143
  ```bibtex
144
- @dataset{hdx_hdx_guinea_bissau_acute_food_insecurity_country_data,
145
- title = {Guinea-Bissau: Acute Food Insecurity Country Data},
146
- author = {Integrated Food Security Phase Classification (IPC)},
147
- year = {2026},
148
- url = {https://data.humdata.org/dataset/guinea-bissau-acute-food-insecurity-country-data},
149
- note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
 
150
  }
151
  ```
152
 
 
 
 
 
 
 
 
 
 
 
153
  ---
154
 
155
- *[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
+ - "food-security"
23
+ - "integrated-food-security-phase-classification-ipc"
24
+ - "gnb"
25
+ pretty_name: "Guinea-Bissau: Acute Food Insecurity Country Data | Africa (original)"
26
  ---
27
 
28
+ # Guinea-Bissau: Acute Food Insecurity Country Data | 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-20-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
+ 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: Guinea-Bissau: Acute Food Insecurity Country Data Publisher: Integrated Food Security Phase Classification (IPC) · Source: HDX · License: other-pd-nr · Updated: 2026-02-09 Abstract The IPC Acute Food Insecurity (IPC AFI) classification provides strategically relevant information to decision makers that focuses on short-term objectives to prevent, mitigate or decrease severe food insecurity that threatens lives or livelihoods. This data has been produced by the National… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/hdx-guinea-bissau-acute-food-insecurity-country-data.
46
 
47
+ ## Dataset Profile
48
 
49
+ | Field | Value |
50
  |---|---|
51
+ | Hugging Face repo | [`electricsheepafrica/hdx-guinea-bissau-acute-food-insecurity-country-data`](https://huggingface.co/datasets/electricsheepafrica/hdx-guinea-bissau-acute-food-insecurity-country-data) |
52
+ | Sector | humanitarian_development |
53
+ | Topic tags | humanitarian, hdx, electric-sheep-africa, food-security, integrated-food-security-phase-classification-ipc, gnb |
54
+ | Modalities | `tabular`, `text` |
55
+ | Formats | `parquet` |
56
+ | Size category | `n<1K` |
57
+ | Countries | Guinea-Bissau |
58
+ | ISO3 coverage | `GNB` |
59
+ | Last modified on HF | `2026-04-04 09:46:54+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/hdx-guinea-bissau-acute-food-insecurity-country-data")
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/hdx-guinea-bissau-acute-food-insecurity-country-data](https://huggingface.co/datasets/electricsheepafrica/hdx-guinea-bissau-acute-food-insecurity-country-data)
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_hdx_guinea_bissau_acute_food_insecurity_country_data_2026,
120
+ title = {Guinea-Bissau: Acute Food Insecurity Country Data | Africa (original)},
121
+ author = {original},
122
+ year = {2026},
123
+ url = {https://huggingface.co/datasets/electricsheepafrica/hdx-guinea-bissau-acute-food-insecurity-country-data},
124
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
125
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/hdx-guinea-bissau-acute-food-insecurity-country-data}}
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`.