Kossisoroyce commited on
Commit
ff00ce6
·
verified ·
1 Parent(s): 53fe373

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +162 -52
README.md CHANGED
@@ -1,56 +1,166 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
- features:
4
- - name: iso3
5
- dtype: string
6
- - name: startdate
7
- dtype: timestamp[ns]
8
- - name: enddate
9
- dtype: timestamp[ns]
10
- - name: area_code
11
- dtype: int64
12
- - name: area_code_m49
13
- dtype: string
14
- - name: area
15
- dtype: string
16
- - name: item_code
17
- dtype: string
18
- - name: item
19
- dtype: string
20
- - name: element_code
21
- dtype: int64
22
- - name: element
23
- dtype: string
24
- - name: year_code
25
- dtype: int64
26
- - name: year
27
- dtype: int64
28
- - name: unit
29
- dtype: string
30
- - name: value
31
- dtype: float64
32
- - name: flag
33
- dtype: string
34
- - name: note
35
- dtype: string
36
- - name: esa_source
37
- dtype: string
38
- - name: esa_processed
39
- dtype: string
40
  splits:
41
- - name: train
42
- num_bytes: 228785
43
- num_examples: 893
44
- - name: test
45
- num_bytes: 57939
46
- num_examples: 224
47
- download_size: 31444
48
- dataset_size: 286724
49
- configs:
50
- - config_name: default
51
- data_files:
52
- - split: train
53
- path: data/train-*
54
- - split: test
55
- path: data/test-*
56
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - 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
+ - food-security
25
+ - indicators
26
+ - nutrition
27
+ - tza
28
+ pretty_name: "United Republic of Tanzania - Food Security and Nutrition Indicators"
29
  dataset_info:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  splits:
31
+ - name: train
32
+ num_examples: 893
33
+ - name: test
34
+ num_examples: 223
 
 
 
 
 
 
 
 
 
 
 
35
  ---
36
+
37
+ # United Republic of Tanzania - Food Security and Nutrition Indicators
38
+
39
+ **Publisher:** Food and Agriculture Organization (FAO) of the United Nations · **Source:** [HDX](https://data.humdata.org/dataset/faostat-food-security-indicators-for-united-republic-of-tanzania) · **License:** `cc-by-igo` · **Updated:** 2026-04-06
40
+
41
+ ---
42
+
43
+ ## Abstract
44
+
45
+ Food Security and Nutrition Indicators for United Republic of Tanzania.
46
+
47
+ Contains data from the FAOSTAT [bulk data service](https://fenixservices.fao.org/faostat/static/bulkdownloads/datasets_E.json).
48
+
49
+ Each row in this dataset represents country-level aggregates. Temporal coverage is indicated by the `startdate`, `enddate` column(s). Geographic scope: **TZA**.
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** | Food security and nutrition |
60
+ | **Unit of observation** | Country-level aggregates |
61
+ | **Rows (total)** | 1,117 |
62
+ | **Columns** | 18 (5 numeric, 11 categorical, 2 datetime) |
63
+ | **Train split** | 893 rows |
64
+ | **Test split** | 223 rows |
65
+ | **Geographic scope** | TZA |
66
+ | **Publisher** | Food and Agriculture Organization (FAO) of the United Nations |
67
+ | **HDX last updated** | 2026-04-06 |
68
+
69
+ ---
70
+
71
+ ## Variables
72
+
73
+ **Geographic** — `iso3` (TZA), `year_code` (range 2000.0–20222024.0), `year` (range 2000.0–2024.0).
74
+
75
+ **Temporal** — `startdate`, `enddate`.
76
+
77
+ **Outcome / Measurement** — `value` (range -0.9–3713.0).
78
+
79
+ **Identifier / Metadata** — `area_code` (range 215.0–215.0), `area_code_m49` ('834), `item_code` (210071M, 210091F, 210081F), `element_code` (range 6121.0–61322.0), `esa_source` (HDX) and 1 others.
80
+
81
+ **Other** — `area` (United Republic of Tanzania), `item` (Number of severely food insecure male adults (million) (3-year average), Prevalence of moderate or severe food insecurity in the female adult population (percent) (3-year average), Number of moderately or severely food insecure female adults (million) (3-year average)), `element` (Value, Confidence interval: Lower bound, Confidence interval: Upper bound), `unit` (%, million No, kcal/cap/d), `flag` (E, X) and 1 others.
82
+
83
+ ---
84
+
85
+ ## Quick Start
86
+
87
+ ```python
88
+ from datasets import load_dataset
89
+
90
+ ds = load_dataset("electricsheepafrica/africa-faostat-food-security-indicators-for-united-republic-of-tanzania")
91
+ train = ds["train"].to_pandas()
92
+ test = ds["test"].to_pandas()
93
+
94
+ print(train.shape)
95
+ train.head()
96
+ ```
97
+
98
+ ---
99
+
100
+ ## Schema
101
+
102
+ | Column | Type | Null % | Range / Sample Values |
103
+ |---|---|---|---|
104
+ | `iso3` | object | 0.0% | TZA |
105
+ | `startdate` | datetime64[ns] | 0.0% | |
106
+ | `enddate` | datetime64[ns] | 0.0% | |
107
+ | `area_code` | int64 | 0.0% | 215.0 – 215.0 (mean 215.0) |
108
+ | `area_code_m49` | object | 0.0% | '834 |
109
+ | `area` | object | 0.0% | United Republic of Tanzania |
110
+ | `item_code` | object | 0.0% | 210071M, 210091F, 210081F |
111
+ | `item` | object | 0.0% | Number of severely food insecure male adults (million) (3-year average), Prevalence of moderate or severe food insecurity in the female adult population (percent) (3-year average), Number of moderately or severely food insecure female adults (million) (3-year average) |
112
+ | `element_code` | int64 | 0.0% | 6121.0 – 61322.0 (mean 16788.9221) |
113
+ | `element` | object | 0.0% | Value, Confidence interval: Lower bound, Confidence interval: Upper bound |
114
+ | `year_code` | int64 | 0.0% | 2000.0 – 20222024.0 (mean 10211298.0045) |
115
+ | `year` | int64 | 0.0% | 2000.0 – 2024.0 (mean 2014.2086) |
116
+ | `unit` | object | 2.0% | %, million No, kcal/cap/d |
117
+ | `value` | float64 | 0.0% | -0.9 – 3713.0 (mean 262.0155) |
118
+ | `flag` | object | 0.0% | E, X |
119
+ | `note` | object | 71.0% | Official estimate integrated with FAO data |
120
+ | `esa_source` | object | 0.0% | HDX |
121
+ | `esa_processed` | object | 0.0% | |
122
+
123
+ ---
124
+
125
+ ## Numeric Summary
126
+
127
+ | Column | Min | Max | Mean | Median |
128
+ |---|---|---|---|---|
129
+ | `area_code` | 215.0 | 215.0 | 215.0 | 215.0 |
130
+ | `element_code` | 6121.0 | 61322.0 | 16788.9221 | 6128.0 |
131
+ | `year_code` | 2000.0 | 20222024.0 | 10211298.0045 | 20002002.0 |
132
+ | `year` | 2000.0 | 2024.0 | 2014.2086 | 2016.0 |
133
+ | `value` | -0.9 | 3713.0 | 262.0155 | 16.8 |
134
+
135
+ ---
136
+
137
+ ## Curation
138
+
139
+ 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) 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.
140
+
141
+ ---
142
+
143
+ ## Limitations
144
+
145
+ - Data originates from Food and Agriculture Organization (FAO) of the United Nations and has not been independently validated by ESA.
146
+ - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
147
+ - The following columns have >20% missing values and should be treated with caution in modelling: `note`.
148
+ - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/faostat-food-security-indicators-for-united-republic-of-tanzania) for the publisher's own methodology notes and caveats.
149
+
150
+ ---
151
+
152
+ ## Citation
153
+
154
+ ```bibtex
155
+ @dataset{hdx_africa_faostat_food_security_indicators_for_united_republic_of_tanzania,
156
+ title = {United Republic of Tanzania - Food Security and Nutrition Indicators},
157
+ author = {Food and Agriculture Organization (FAO) of the United Nations},
158
+ year = {2026},
159
+ url = {https://data.humdata.org/dataset/faostat-food-security-indicators-for-united-republic-of-tanzania},
160
+ note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
161
+ }
162
+ ```
163
+
164
+ ---
165
+
166
+ *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*