Kossisoroyce commited on
Commit
5e12a90
·
verified ·
1 Parent(s): 39c03e3

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +171 -58
README.md CHANGED
@@ -1,62 +1,175 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
- features:
4
- - name: iso3
5
- dtype: string
6
- - name: country_name
7
- dtype: string
8
- - name: year
9
- dtype: int64
10
- - name: start_date
11
- dtype: timestamp[ns]
12
- - name: start_date_accuracy
13
- dtype: string
14
- - name: end_date
15
- dtype: timestamp[ns]
16
- - name: end_date_accuracy
17
- dtype: string
18
- - name: event_name
19
- dtype: string
20
- - name: hazard_category
21
- dtype: int64
22
- - name: hazard_category_name
23
- dtype: string
24
- - name: hazard_sub_category
25
- dtype: int64
26
- - name: hazard_sub_category_name
27
- dtype: string
28
- - name: hazard_type
29
- dtype: int64
30
- - name: hazard_type_name
31
- dtype: string
32
- - name: hazard_sub_type
33
- dtype: int64
34
- - name: new_displacement
35
- dtype: int64
36
- - name: new_displacement_rounded
37
- dtype: int64
38
- - name: total_displacement
39
- dtype: float64
40
- - name: total_displacement_rounded
41
- dtype: float64
42
- - name: esa_source
43
- dtype: string
44
- - name: esa_processed
45
- dtype: string
46
  splits:
47
- - name: train
48
- num_bytes: 12392
49
- num_examples: 48
50
- - name: test
51
- num_bytes: 2998
52
- num_examples: 12
53
- download_size: 23340
54
- dataset_size: 15390
55
- configs:
56
- - config_name: default
57
- data_files:
58
- - split: train
59
- path: data/train-*
60
- - split: test
61
- path: data/test-*
62
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ task_ids: []
18
+ tags:
19
+ - africa
20
+ - humanitarian
21
+ - hdx
22
+ - electric-sheep-africa
23
+ - displacement
24
+ - internally-displaced-persons-idp
25
+ - natural-disasters
26
+ - tza
27
+ pretty_name: "United Republic of Tanzania - Internal Displacements (New Displacements) – IDPs"
28
  dataset_info:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  splits:
30
+ - name: train
31
+ num_examples: 48
32
+ - name: test
33
+ num_examples: 12
 
 
 
 
 
 
 
 
 
 
 
34
  ---
35
+
36
+ # United Republic of Tanzania - Internal Displacements (New Displacements) – IDPs
37
+
38
+ **Publisher:** Internal Displacement Monitoring Centre (IDMC) · **Source:** [HDX](https://data.humdata.org/dataset/idmc-idp-data-tza) · **License:** `cc-by-igo` · **Updated:** 2026-03-18
39
+
40
+ ---
41
+
42
+ ## Abstract
43
+
44
+ The [Global Internal Displacement Database (GIDD)](http://www.internal-displacement.org/database/displacement-data), maintained by the [Internal Displacement Monitoring Centre (IDMC)](https://www.internal-displacement.org/), provides comprehensive, validated annual estimates of internal displacement worldwide. It defines internally displaced persons (IDPs) in line with the [1998 Guiding Principles](https://www.internal-displacement.org/internal-displacement/guiding-principles-on-internal-displacement/), as people or groups of people who have been forced or obliged to flee or to leave their homes or places of habitual residence, in particular as a result of armed conflict, or to avoid the effects of armed conflict, situations of generalized violence, violations of human rights, or natural or human-made disasters and who have not crossed an international border.
45
+
46
+
47
+ The GIDD tracks two primary metrics: "People Displaced" or population "Stock" figures, which represent the total number of people living in displacement at year-end, and "New Displacement," which counts new displacement incidents (population Flows) rather than individual people, accounting for potential multiple displacements by the same person. This dataset serves as a crucial resource for understanding long-term trends and validated displacement figures globally. For further detailed information and complete API specifications, users are encouraged to consult the official documentation at https://www.internal-displacement.org/database/api-documentation/.
48
+
49
+
50
+ "Internally displaced persons - IDPs" refers to the number of people living in displacement as of the end of each year.
51
+
52
+
53
+ "Internal displacements (New Displacements)" refers to the number of new cases or incidents of displacement recorded, rather than the number of people displaced. This is done because people may have been displaced more than once.
54
+
55
+ Each row in this dataset represents country-level aggregates. Temporal coverage is indicated by the `start_date`, `end_date` column(s). Geographic scope: **TZA**.
56
+
57
+ *Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
58
+
59
+ ---
60
+
61
+ ## Dataset Characteristics
62
+
63
+ | | |
64
+ |---|---|
65
+ | **Domain** | Conflict and security |
66
+ | **Unit of observation** | Country-level aggregates |
67
+ | **Rows (total)** | 60 |
68
+ | **Columns** | 21 (9 numeric, 10 categorical, 2 datetime) |
69
+ | **Train split** | 48 rows |
70
+ | **Test split** | 12 rows |
71
+ | **Geographic scope** | TZA |
72
+ | **Publisher** | Internal Displacement Monitoring Centre (IDMC) |
73
+ | **HDX last updated** | 2026-03-18 |
74
+
75
+ ---
76
+
77
+ ## Variables
78
+
79
+ **Geographic** — `iso3` (TZA), `country_name` (United Republic of Tanzania), `year` (range 2008.0–2024.0), `start_date_accuracy` (Day, Week, Month), `end_date_accuracy` (Day, Week, Month) and 11 others.
80
+
81
+ **Temporal** — `start_date`, `end_date`.
82
+
83
+ **Identifier / Metadata** — `event_name` (Tanzania: Flood - 01/01/2011, Tanzania: Flood - 17/03/2008, Tanzania: Heavy Rains/Strong Winds - Tanga - December 2021), `esa_source` (HDX), `esa_processed` (2026-04-12).
84
+
85
+ ---
86
+
87
+ ## Quick Start
88
+
89
+ ```python
90
+ from datasets import load_dataset
91
+
92
+ ds = load_dataset("electricsheepafrica/africa-idmc-idp-data-tza")
93
+ train = ds["train"].to_pandas()
94
+ test = ds["test"].to_pandas()
95
+
96
+ print(train.shape)
97
+ train.head()
98
+ ```
99
+
100
+ ---
101
+
102
+ ## Schema
103
+
104
+ | Column | Type | Null % | Range / Sample Values |
105
+ |---|---|---|---|
106
+ | `iso3` | object | 0.0% | TZA |
107
+ | `country_name` | object | 0.0% | United Republic of Tanzania |
108
+ | `year` | int64 | 0.0% | 2008.0 – 2024.0 (mean 2018.5) |
109
+ | `start_date` | datetime64[ns] | 0.0% | |
110
+ | `start_date_accuracy` | object | 0.0% | Day, Week, Month |
111
+ | `end_date` | datetime64[ns] | 6.7% | |
112
+ | `end_date_accuracy` | object | 6.7% | Day, Week, Month |
113
+ | `event_name` | object | 0.0% | Tanzania: Flood - 01/01/2011, Tanzania: Flood - 17/03/2008, Tanzania: Heavy Rains/Strong Winds - Tanga - December 2021 |
114
+ | `hazard_category` | int64 | 0.0% | 1.0 – 2.0 (mean 1.9667) |
115
+ | `hazard_category_name` | object | 0.0% | Weather related, Geophysical |
116
+ | `hazard_sub_category` | int64 | 0.0% | 1.0 – 4.0 (mean 3.2167) |
117
+ | `hazard_sub_category_name` | object | 0.0% | Hydrological, Meteorological, Geophysical |
118
+ | `hazard_type` | int64 | 0.0% | 1.0 – 14.0 (mean 10.85) |
119
+ | `hazard_type_name` | object | 0.0% | Flood, Storm, Earthquake |
120
+ | `hazard_sub_type` | int64 | 0.0% | 1.0 – 24.0 (mean 14.9667) |
121
+ | `new_displacement` | int64 | 0.0% | 10.0 – 85010.0 (mean 6363.8167) |
122
+ | `new_displacement_rounded` | int64 | 0.0% | 10.0 – 85000.0 (mean 6369.8667) |
123
+ | `total_displacement` | float64 | 65.0% | 5.0 – 71693.0 (mean 7067.7143) |
124
+ | `total_displacement_rounded` | float64 | 65.0% | 5.0 – 72000.0 (mean 7096.8571) |
125
+ | `esa_source` | object | 0.0% | HDX |
126
+ | `esa_processed` | object | 0.0% | 2026-04-12 |
127
+
128
+ ---
129
+
130
+ ## Numeric Summary
131
+
132
+ | Column | Min | Max | Mean | Median |
133
+ |---|---|---|---|---|
134
+ | `year` | 2008.0 | 2024.0 | 2018.5 | 2019.0 |
135
+ | `hazard_category` | 1.0 | 2.0 | 1.9667 | 2.0 |
136
+ | `hazard_sub_category` | 1.0 | 4.0 | 3.2167 | 3.0 |
137
+ | `hazard_type` | 1.0 | 14.0 | 10.85 | 10.0 |
138
+ | `hazard_sub_type` | 1.0 | 24.0 | 14.9667 | 13.0 |
139
+ | `new_displacement` | 10.0 | 85010.0 | 6363.8167 | 1153.0 |
140
+ | `new_displacement_rounded` | 10.0 | 85000.0 | 6369.8667 | 1150.0 |
141
+ | `total_displacement` | 5.0 | 71693.0 | 7067.7143 | 291.0 |
142
+ | `total_displacement_rounded` | 5.0 | 72000.0 | 7096.8571 | 290.0 |
143
+
144
+ ---
145
+
146
+ ## Curation
147
+
148
+ 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) with >80% missing values were removed: `hazard_subtype_name`, `event_codes`. 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.
149
+
150
+ ---
151
+
152
+ ## Limitations
153
+
154
+ - Data originates from Internal Displacement Monitoring Centre (IDMC) and has not been independently validated by ESA.
155
+ - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
156
+ - The following columns have >20% missing values and should be treated with caution in modelling: `total_displacement`, `total_displacement_rounded`.
157
+ - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/idmc-idp-data-tza) for the publisher's own methodology notes and caveats.
158
+
159
+ ---
160
+
161
+ ## Citation
162
+
163
+ ```bibtex
164
+ @dataset{hdx_africa_idmc_idp_data_tza,
165
+ title = {United Republic of Tanzania - Internal Displacements (New Displacements) – IDPs},
166
+ author = {Internal Displacement Monitoring Centre (IDMC)},
167
+ year = {2026},
168
+ url = {https://data.humdata.org/dataset/idmc-idp-data-tza},
169
+ note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
170
+ }
171
+ ```
172
+
173
+ ---
174
+
175
+ *[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*