Olaroti commited on
Commit
9de4a6b
·
verified ·
1 Parent(s): 256f8e2

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +101 -167
README.md CHANGED
@@ -1,209 +1,143 @@
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
- - other
18
- task_ids: []
 
 
19
  tags:
20
- - africa
21
- - humanitarian
22
- - hdx
23
- - electric-sheep-africa
24
- - conflict-violence
25
- - hxl
26
- - tza
27
- pretty_name: "United Republic of Tanzania - Data on Conflict Events"
28
- dataset_info:
29
- splits:
30
- - name: train
31
- num_examples: 41
32
- - name: test
33
- num_examples: 10
 
 
34
  ---
35
 
36
- # United Republic of Tanzania - Data on Conflict Events
37
 
38
- **Publisher:** HDX · **Source:** [HDX](https://data.humdata.org/dataset/ucdp-data-for-united-republic-of-tanzania) · **License:** `cc-by-igo` · **Updated:** 2026-04-03
39
 
40
- ---
 
 
 
41
 
42
- ## Abstract
43
 
44
- This dataset is UCDP's most disaggregated dataset, covering individual events of organized violence (phenomena of lethal violence occurring at a given time and place). These events are sufficiently fine-grained to be geo-coded down to the level of individual villages, with temporal durations disaggregated to single, individual days.
45
- Sundberg, Ralph, and Erik Melander, 2013, “Introducing the UCDP Georeferenced Event Dataset”, Journal of Peace Research, vol.50, no.4, 523-532
46
- Högbladh Stina, 2019, “UCDP GED Codebook version 19.1”, Department of Peace and Conflict Research, Uppsala University
47
 
48
- Each row in this dataset represents first-level administrative unit observations. Temporal coverage is indicated by the `date_start`, `date_end` column(s). Geographic scope: **TZA**.
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** | Conflict and security |
59
- | **Unit of observation** | First-level administrative unit observations |
60
- | **Rows (total)** | 52 |
61
- | **Columns** | 51 (27 numeric, 21 categorical, 2 datetime) |
62
- | **Train split** | 41 rows |
63
- | **Test split** | 10 rows |
64
- | **Geographic scope** | TZA |
65
- | **Publisher** | HDX |
66
- | **HDX last updated** | 2026-04-03 |
67
-
68
- ---
69
-
70
- ## Variables
71
-
72
- **Geographic** `year` (range 1992.0–2024.0), `active_year`, `type_of_violence` (range 1.0–3.0), `dyad_dset_id` (range 92.0–16474.0), `dyad_new_id` (range 937.0–16474.0) and 9 others.
73
-
74
- **Temporal** `source_date` (2021-11-30, 2022-10-11, 2021-12-15), `date_prec` (range 1.0–5.0), `date_start`, `date_end`.
75
-
76
- **Outcome / Measurement** — `number_of_sources` (range -1.0–5.0), `deaths_a` (range 0.0–3.0), `deaths_b`, `deaths_civilians`, `deaths_unknown`.
77
-
78
- **Identifier / Metadata** — `id` (range 10520.0–555794.0), `relid` (TAZ-1992-3-510-1, TAZ-1999-3-510-1, TAZ-2020-3-937-5), `code_status` (Clear), `conflict_dset_id` (range 92.0–15183.0), `conflict_new_id` (range 470.0–15183.0) and 14 others.
79
-
80
- **Other** — `where_prec` (range 1.0–6.0), `where_description`, `adm_1`, `adm_2`, `geom_wkt` and 4 others.
81
-
82
- ---
83
-
84
- ## Quick Start
85
 
86
  ```python
87
  from datasets import load_dataset
88
 
89
- ds = load_dataset("electricsheepafrica/africa-ucdp-data-for-united-republic-of-tanzania")
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
- | `id` | int64 | 0.0% | 10520.0 – 555794.0 (mean 332450.5) |
104
- | `relid` | object | 0.0% | TAZ-1992-3-510-1, TAZ-1999-3-510-1, TAZ-2020-3-937-5 |
105
- | `year` | int64 | 0.0% | 1992.0 – 2024.0 (mean 2015.5769) |
106
- | `active_year` | bool | 0.0% | |
107
- | `code_status` | object | 0.0% | Clear |
108
- | `type_of_violence` | int64 | 0.0% | 1.0 – 3.0 (mean 2.7115) |
109
- | `conflict_dset_id` | int64 | 0.0% | 92.0 – 15183.0 (mean 2250.0192) |
110
- | `conflict_new_id` | int64 | 0.0% | 470.0 – 15183.0 (mean 2541.4615) |
111
- | `conflict_name` | object | 0.0% | Government of Tanzania - Civilians, Tanzania: Islamic State, IS - Civilians |
112
- | `dyad_dset_id` | int64 | 0.0% | 92.0 – 16474.0 (mean 2423.8077) |
113
- | `dyad_new_id` | int64 | 0.0% | 937.0 – 16474.0 (mean 3122.1346) |
114
- | `dyad_name` | object | 0.0% | Government of Tanzania - Civilians, Government of Tanzania - IS, IS - Civilians |
115
- | `side_a_dset_id` | int64 | 0.0% | 92.0 – 528.0 (mean 120.5962) |
116
- | `side_a_new_id` | int64 | 0.0% | 92.0 – 528.0 (mean 120.5962) |
117
- | `side_a` | object | 0.0% | Government of Tanzania, IS, Government of Burundi |
118
- | `side_b_dset_id` | int64 | 0.0% | 234.0 – 9999.0 (mean 8500.5) |
119
- | `side_b_new_id` | int64 | 0.0% | 1.0 – 432.0 (mean 40.6538) |
120
- | `side_b` | object | 0.0% | Civilians, IS, Palipehutu-FNL |
121
- | `number_of_sources` | int64 | 0.0% | -1.0 – 5.0 (mean 1.0385) |
122
- | `source_article` | object | 0.0% | "AllAfrica,2021-11-30,Tanzania - No Justice for Zanzibar Election Violence
123
- CR Human Rights Watch", HRW, 2002 April, "The bullets were raining", http://www.hrw.org/legacy/reports/2002/tanzania/zanz0402.pdf, "MiningWatch,2022-10-11,“He was murdered” : Violence against Kuria High after Barrick Takeover of Mine" |
124
- | `source_office` | object | 17.3% | AllAfrica, CABO LIGADO, MiningWatch |
125
- | `source_date` | object | 17.3% | 2021-11-30, 2022-10-11, 2021-12-15 |
126
- | `source_headline` | object | 17.3% | Tanzania - No Justice for Zanzibar Election Violence
127
- CR Human Rights Watch, “He was murdered” : Violence against Kuria High after Barrick Takeover of Mine, Cabo Ligado Weekly: 6-12 December |
128
- | `source_original` | object | 3.8% | |
129
- | `where_prec` | int64 | 0.0% | 1.0 – 6.0 (mean 1.4231) |
130
- | `where_coordinates` | object | 0.0% | |
131
- | `where_description` | object | 7.7% | |
132
- | `adm_1` | object | 3.8% | |
133
- | `adm_2` | object | 5.8% | |
134
- | `latitude` | float64 | 0.0% | -11.405 – -1.4289 (mean -6.1491) |
135
- | `longitude` | float64 | 0.0% | 29.7567 – 40.2796 (mean 37.6266) |
136
- | `geom_wkt` | object | 0.0% | |
137
- | `priogrid_gid` | int64 | 0.0% | 113477.0 – 127870.0 (mean 120855.8269) |
138
- | `country` | object | 0.0% | |
139
- | `iso3` | object | 0.0% | |
140
- | `country_id` | int64 | 0.0% | 510.0 – 510.0 (mean 510.0) |
141
- | `region` | object | 0.0% | |
142
- | `event_clarity` | int64 | 0.0% | 1.0 – 2.0 (mean 1.1346) |
143
- | `date_prec` | int64 | 0.0% | 1.0 – 5.0 (mean 1.7692) |
144
- | `date_start` | datetime64[ns] | 0.0% | |
145
- | `date_end` | datetime64[ns] | 0.0% | |
146
- | `deaths_a` | int64 | 0.0% | 0.0 – 3.0 (mean 0.1731) |
147
- | `deaths_b` | int64 | 0.0% | |
148
- | `deaths_civilians` | int64 | 0.0% | |
149
- | `deaths_unknown` | int64 | 0.0% | |
150
- | `best` | int64 | 0.0% | |
151
- | `high` | int64 | 0.0% | |
152
- | `low` | int64 | 0.0% | |
153
- | `gwnoa` | float64 | 13.5% | |
154
- | `esa_source` | object | 0.0% | |
155
- | `esa_processed` | object | 0.0% | |
156
 
157
- ---
158
-
159
- ## Numeric Summary
160
-
161
- | Column | Min | Max | Mean | Median |
162
- |---|---|---|---|---|
163
- | `id` | 10520.0 | 555794.0 | 332450.5 | 421995.5 |
164
- | `year` | 1992.0 | 2024.0 | 2015.5769 | 2020.0 |
165
- | `type_of_violence` | 1.0 | 3.0 | 2.7115 | 3.0 |
166
- | `conflict_dset_id` | 92.0 | 15183.0 | 2250.0192 | 92.0 |
167
- | `conflict_new_id` | 470.0 | 15183.0 | 2541.4615 | 470.0 |
168
- | `dyad_dset_id` | 92.0 | 16474.0 | 2423.8077 | 92.0 |
169
- | `dyad_new_id` | 937.0 | 16474.0 | 3122.1346 | 937.0 |
170
- | `side_a_dset_id` | 92.0 | 528.0 | 120.5962 | 92.0 |
171
- | `side_a_new_id` | 92.0 | 528.0 | 120.5962 | 92.0 |
172
- | `side_b_dset_id` | 234.0 | 9999.0 | 8500.5 | 9999.0 |
173
- | `side_b_new_id` | 1.0 | 432.0 | 40.6538 | 1.0 |
174
- | `number_of_sources` | -1.0 | 5.0 | 1.0385 | 1.0 |
175
- | `where_prec` | 1.0 | 6.0 | 1.4231 | 1.0 |
176
- | `latitude` | -11.405 | -1.4289 | -6.1491 | -6.0667 |
177
- | `longitude` | 29.7567 | 40.2796 | 37.6266 | 39.2833 |
178
 
179
- ---
 
 
 
 
180
 
181
- ## Curation
182
 
183
- 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: `gwnob`. 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.
 
 
 
184
 
185
- ---
186
 
187
- ## Limitations
 
 
 
 
188
 
189
- - Data originates from HDX and has not been independently validated by ESA.
190
- - Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
191
- - Refer to the [original HDX dataset page](https://data.humdata.org/dataset/ucdp-data-for-united-republic-of-tanzania) for the publisher's own methodology notes and caveats.
192
 
193
- ---
 
 
 
194
 
195
  ## Citation
196
 
197
  ```bibtex
198
- @dataset{hdx_africa_ucdp_data_for_united_republic_of_tanzania,
199
- title = {United Republic of Tanzania - Data on Conflict Events},
200
- author = {HDX},
201
- year = {2026},
202
- url = {https://data.humdata.org/dataset/ucdp-data-for-united-republic-of-tanzania},
203
- note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
 
204
  }
205
  ```
206
 
 
 
 
 
 
 
 
 
 
 
207
  ---
208
 
209
- *[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
+ - "governance-security"
17
+ - "parquet"
18
+ - "tabular"
19
+ - "text"
20
+ - "humanitarian"
21
+ - "hdx"
22
+ - "conflict-violence"
23
+ - "hxl"
24
+ - "tza"
25
+ - "conflict"
26
+ - "violence"
27
+ pretty_name: "United Republic of Tanzania - Data on Conflict Events | Africa (original)"
28
  ---
29
 
30
+ # United Republic of Tanzania - Data on Conflict Events | Africa (original)
31
 
32
+ **Size category:** `n<1K` - **Formats:** `parquet` - **Sector:** governance_security - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
33
 
34
+ ![size](https://img.shields.io/badge/size-n%3C1K-blue)
35
+ ![sector](https://img.shields.io/badge/sector-governance_security-green)
36
+ ![downloads](https://img.shields.io/badge/HF_downloads-204-orange)
37
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
38
 
39
+ ## TL;DR
40
 
41
+ 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.
 
 
42
 
43
+ ## What This Dataset Covers
44
 
45
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
46
 
47
+ Dataset context from the existing Hugging Face card: United Republic of Tanzania - Data on Conflict Events Publisher: HDX · Source: HDX · License: cc-by-igo · Updated: 2026-04-03 Abstract This dataset is UCDP's most disaggregated dataset, covering individual events of organized violence (phenomena of lethal violence occurring at a given time and place). These events are sufficiently fine-grained to be geo-coded down to the level of individual villages, with temporal durations disaggregated to single, individual… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-ucdp-data-for-united-republic-of-tanzania.
48
 
49
+ ## Dataset Profile
50
 
51
+ | Field | Value |
52
  |---|---|
53
+ | Hugging Face repo | [`electricsheepafrica/africa-ucdp-data-for-united-republic-of-tanzania`](https://huggingface.co/datasets/electricsheepafrica/africa-ucdp-data-for-united-republic-of-tanzania) |
54
+ | Sector | governance_security |
55
+ | Topic tags | humanitarian, hdx, electric-sheep-africa, conflict-violence, hxl, tza |
56
+ | Modalities | `tabular`, `text` |
57
+ | Formats | `parquet` |
58
+ | Size category | `n<1K` |
59
+ | Countries | Tanzania |
60
+ | ISO3 coverage | `TZA` |
61
+ | Last modified on HF | `2026-04-12 10:24:13+00:00` |
62
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
63
+
64
+ ## How To Read This Dataset
65
+
66
+ - Start from the repository files and the dataset viewer when available.
67
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
68
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
69
+ - Preserve missing values until you have a defensible imputation rule.
70
+
71
+ ## Usage
 
 
 
 
 
 
 
 
72
 
73
  ```python
74
  from datasets import load_dataset
75
 
76
+ ds = load_dataset("electricsheepafrica/africa-ucdp-data-for-united-republic-of-tanzania")
77
+ print(ds)
 
78
 
79
+ split_name = next(iter(ds))
80
+ table = ds[split_name]
81
+ print(table.features)
82
+ print(table[:3])
83
  ```
84
 
85
+ ### Convert To Pandas When Tabular
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
 
87
+ ```python
88
+ from datasets import Dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
 
90
+ first_split = ds[next(iter(ds))]
91
+ if isinstance(first_split, Dataset):
92
+ df = first_split.to_pandas()
93
+ print(df.head())
94
+ ```
95
 
96
+ ## Data Quality Notes
97
 
98
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
99
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
100
+ - Metadata gaps from the inventory: upstream_publisher.
101
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
102
 
103
+ ## Source And Provenance
104
 
105
+ - **Source context:** original
106
+ - **Publisher/source attribution:** original
107
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
108
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-ucdp-data-for-united-republic-of-tanzania](https://huggingface.co/datasets/electricsheepafrica/africa-ucdp-data-for-united-republic-of-tanzania)
109
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
110
 
111
+ ## Suggested Analyses
 
 
112
 
113
+ - Inspect schema and missingness before modeling.
114
+ - Profile variables by geography, time, and subgroup columns where present.
115
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
116
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
117
 
118
  ## Citation
119
 
120
  ```bibtex
121
+ @misc{electric_sheep_africa_africa_ucdp_data_for_united_republic_of_tanzania_2026,
122
+ title = {United Republic of Tanzania - Data on Conflict Events | Africa (original)},
123
+ author = {original},
124
+ year = {2026},
125
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-ucdp-data-for-united-republic-of-tanzania},
126
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
127
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-ucdp-data-for-united-republic-of-tanzania}}
128
  }
129
  ```
130
 
131
+ ## License
132
+
133
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
134
+
135
+ 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.
136
+
137
+ ## About Electric Sheep Africa
138
+
139
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
140
+
141
  ---
142
 
143
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.