Standardize Electric Sheep Africa dataset card
Browse files
README.md
CHANGED
|
@@ -1,209 +1,143 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 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 |
-
-
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
tags:
|
| 20 |
-
- africa
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
-
-
|
| 24 |
-
-
|
| 25 |
-
-
|
| 26 |
-
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
| 34 |
---
|
| 35 |
|
| 36 |
-
# United Republic of Tanzania - Data on Conflict Events
|
| 37 |
|
| 38 |
-
**
|
| 39 |
|
| 40 |
-
--
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
##
|
| 43 |
|
| 44 |
-
This dataset is
|
| 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 |
-
|
| 49 |
|
| 50 |
-
|
| 51 |
|
| 52 |
-
---
|
| 53 |
|
| 54 |
-
## Dataset
|
| 55 |
|
| 56 |
-
| | |
|
| 57 |
|---|---|
|
| 58 |
-
|
|
| 59 |
-
|
|
| 60 |
-
|
|
| 61 |
-
|
|
| 62 |
-
|
|
| 63 |
-
|
|
| 64 |
-
|
|
| 65 |
-
|
|
| 66 |
-
|
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 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
|
| 90 |
-
|
| 91 |
-
test = ds["test"].to_pandas()
|
| 92 |
|
| 93 |
-
|
| 94 |
-
|
|
|
|
|
|
|
| 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 |
-
##
|
| 182 |
|
| 183 |
-
|
|
|
|
|
|
|
|
|
|
| 184 |
|
| 185 |
-
|
| 186 |
|
| 187 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
|
| 189 |
-
|
| 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 |
-
@
|
| 199 |
-
title
|
| 200 |
-
author
|
| 201 |
-
year
|
| 202 |
-
url
|
| 203 |
-
|
|
|
|
| 204 |
}
|
| 205 |
```
|
| 206 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
---
|
| 208 |
|
| 209 |
-
|
|
|
|
| 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 |
+

|
| 35 |
+

|
| 36 |
+

|
| 37 |
+

|
| 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`.
|