Olaroti commited on
Commit
55caad2
·
verified ·
1 Parent(s): b5af2a7

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +94 -95
README.md CHANGED
@@ -5,90 +5,67 @@ language:
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
8
- - time-series-forecasting
9
  multilinguality: monolingual
10
  size_categories:
11
  - 1K<n<10K
12
  tags:
13
- - tabular
14
- - africa
15
- - our-world-in-data
16
- - deaths-from-terrorism-by-target
17
- - owid
18
- - long-run-series
19
- - time-series
20
- pretty_name: "Deaths From Terrorism By Target | Africa (Our World in Data)"
 
 
 
 
 
 
 
21
  ---
22
 
23
- # Deaths From Terrorism By Target | Africa (Our World in Data)
24
 
25
- 🌍 **2,578 observations** · **51 Africa countries** · **1970–2021** · *Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
26
 
27
- ![rows](https://img.shields.io/badge/rows-2,578-blue) ![countries](https://img.shields.io/badge/countries-51-green) ![years](https://img.shields.io/badge/years-1970–2021-orange) ![license](https://img.shields.io/badge/license-cc-by-4.0-lightgrey)
 
 
 
28
 
29
  ## TL;DR
30
 
31
- This dataset contains **2,578 observations** of `Deaths From Terrorism By Target` data across **51 Africa countries**, spanning **1970–2021**.
32
-
33
- ## About the source
34
-
35
- - **Source:** [Our World in Data](https://ourworldindata.org/grapher/deaths-from-terrorism-by-target)
36
- - **Publisher:** Our World in Data
37
- - **License:** [cc-by-4.0](https://creativecommons.org/licenses/by/4.0/)
38
- - **Topic:** Deaths From Terrorism By Target
39
-
40
- ## Geographic coverage
41
-
42
- 51 Africa countries · top rows shown below, sorted by row count:
43
-
44
- | Country | Rows | First year | Last year |
45
- |---------|-----:|-----------:|----------:|
46
- | `AGO` | 51 | 1970 | 2021 |
47
- | `BDI` | 51 | 1970 | 2021 |
48
- | `BEN` | 51 | 1970 | 2021 |
49
- | `BFA` | 51 | 1970 | 2021 |
50
- | `BWA` | 51 | 1970 | 2021 |
51
- | `CAF` | 51 | 1970 | 2021 |
52
- | `CIV` | 51 | 1970 | 2021 |
53
- | `CMR` | 51 | 1970 | 2021 |
54
- | `COD` | 51 | 1970 | 2021 |
55
- | `COM` | 51 | 1970 | 2021 |
56
- | `DJI` | 51 | 1970 | 2021 |
57
- | `DZA` | 51 | 1970 | 2021 |
58
- | `EGY` | 51 | 1970 | 2021 |
59
- | `ETH` | 51 | 1970 | 2021 |
60
- | `GAB` | 51 | 1970 | 2021 |
61
- | ... | _36 more countries_ | | |
62
-
63
- ## Schema
64
-
65
- | Column | Type | Description | Example |
66
- |--------|------|-------------|---------|
67
- | `country_name` | `string` | — | `Algeria` |
68
- | `country_iso3` | `string` | — | `DZA` |
69
- | `year` | `int64` | — | `1970` |
70
- | `Airports and airplanes` | `float64` | — | `0.0` |
71
- | `Abortion related` | `float64` | — | `0.0` |
72
- | `Business` | `float64` | — | `0.0` |
73
- | `Food or water supply` | `float64` | — | `0.0` |
74
- | `Government` | `float64` | — | `0.0` |
75
- | `Maritime` | `float64` | — | `0.0` |
76
- | `NGO` | `float64` | — | `0.0` |
77
- | `Religious targets` | `float64` | — | `0.0` |
78
- | `Militia` | `float64` | — | `0.0` |
79
- | `Transportation` | `float64` | — | `0.0` |
80
- | `Utilities` | `float64` | — | `0.0` |
81
- | `Violent political parties` | `float64` | — | `0.0` |
82
- | `Unknown` | `float64` | — | `0.0` |
83
- | `Tourists` | `float64` | — | `0.0` |
84
- | `Telecommunication` | `float64` | — | `0.0` |
85
- | `Other` | `float64` | — | `0.0` |
86
- | `Journalists & media` | `float64` | — | `0.0` |
87
- | `Diplomatic` | `float64` | — | `0.0` |
88
- | `Educational institutions` | `float64` | — | `0.0` |
89
- | `Police` | `float64` | — | `0.0` |
90
- | `Military` | `float64` | — | `0.0` |
91
- | `Private citizens & property` | `float64` | — | `0.0` |
92
 
93
  ## Usage
94
 
@@ -96,48 +73,70 @@ This dataset contains **2,578 observations** of `Deaths From Terrorism By Target
96
  from datasets import load_dataset
97
 
98
  ds = load_dataset("electricsheepafrica/africa-owid-deaths-from-terrorism-by-target")
99
- df = ds["train"].to_pandas()
100
- print(df.head())
 
 
 
 
101
  ```
102
 
103
- ### Filter to one country
104
 
105
  ```python
106
- kenya = df[df["country_iso3"] == "KEN"]
 
 
 
 
 
107
  ```
108
 
109
- ### Time-series for a single indicator
110
 
111
- ```python
112
- sample = df.sort_values("year")
113
- sample.plot(x="year", y="Airports and airplanes")
114
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  ## Citation
117
 
118
  ```bibtex
119
- @misc{africa_owid_deaths_from_terrorism_by_target_2021,
120
- title = {Deaths From Terrorism By Target | Africa (Our World in Data)},
121
- author = {Our World in Data},
122
- year = {2021},
123
- url = {https://ourworldindata.org/grapher/deaths-from-terrorism-by-target},
124
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
125
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-owid-deaths-from-terrorism-by-target}}
126
  }
127
  ```
128
 
129
  ## License
130
 
131
- Released under [cc-by-4.0](https://creativecommons.org/licenses/by/4.0/).
132
-
133
- Original data © Our World in Data. When using this dataset, please cite both the original source above and the Electric Sheep Africa repackaging.
134
 
135
- ## About Electric Sheep
136
 
137
- Electric Sheep Africa is part of the Electric Sheep mission: a unified, ML-ready data layer for Africa on HuggingFace. We pull data from authoritative open sources, normalize the schemas, package as Parquet, and publish with consistent dataset cards so researchers and developers can use `load_dataset()` to start working in seconds.
138
 
139
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
140
 
141
  ---
142
 
143
- _Provenance: ingested 2026-06-05 via the Electric Sheep pipeline. Source URL: https://ourworldindata.org/grapher/deaths-from-terrorism-by-target_
 
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
 
8
  multilinguality: monolingual
9
  size_categories:
10
  - 1K<n<10K
11
  tags:
12
+ - "africa"
13
+ - "electric-sheep-africa"
14
+ - "open-data"
15
+ - "metadata-backed"
16
+ - "governance-security"
17
+ - "parquet"
18
+ - "tabular"
19
+ - "text"
20
+ - "our-world-in-data"
21
+ - "deaths-from-terrorism-by-target"
22
+ - "owid"
23
+ - "long-run-series"
24
+ - "time-series"
25
+ - "terrorism"
26
+ pretty_name: "Deaths From Terrorism By Target | Africa (Our World in Data) | Africa (Electric Sheep Africa metadata inventory)"
27
  ---
28
 
29
+ # Deaths From Terrorism By Target | Africa (Our World in Data) | Africa (Electric Sheep Africa metadata inventory)
30
 
31
+ **Size category:** `1K<n<10K` - **Formats:** `parquet` - **Sector:** governance_security - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
32
 
33
+ ![size](https://img.shields.io/badge/size-1K%3Cn%3C10K-blue)
34
+ ![sector](https://img.shields.io/badge/sector-governance_security-green)
35
+ ![downloads](https://img.shields.io/badge/HF_downloads-8-orange)
36
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
37
 
38
  ## TL;DR
39
 
40
+ 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.
41
+
42
+ ## What This Dataset Covers
43
+
44
+ Public datasets help analysts inspect structured evidence, build reproducible workflows, and compare patterns across domains.
45
+
46
+ Dataset context from the existing Hugging Face card: Deaths From Terrorism By Target | Africa (Our World in Data) 🌍 2,578 observations · 51 Africa countries · 1970–2021 · Repackaged by Electric Sheep Africa TL;DR This dataset contains 2,578 observations of Deaths From Terrorism By Target data across 51 Africa countries, spanning 1970–2021. About the source Source: Our World in Data Publisher: Our World in Data License: cc-by-4.0 Topic: Deaths From Terrorism By Target Geographic… See the full description on the dataset page: https://huggingface.co/datasets/electricsheepafrica/africa-owid-deaths-from-terrorism-by-target.
47
+
48
+ ## Dataset Profile
49
+
50
+ | Field | Value |
51
+ |---|---|
52
+ | Hugging Face repo | [`electricsheepafrica/africa-owid-deaths-from-terrorism-by-target`](https://huggingface.co/datasets/electricsheepafrica/africa-owid-deaths-from-terrorism-by-target) |
53
+ | Sector | governance_security |
54
+ | Topic tags | tabular, our-world-in-data, deaths-from-terrorism-by-target, owid, long-run-series, time-series |
55
+ | Modalities | `tabular`, `text` |
56
+ | Formats | `parquet` |
57
+ | Size category | `1K<n<10K` |
58
+ | Countries | Africa-wide or source-defined African coverage |
59
+ | ISO3 coverage | `not declared` |
60
+ | Last modified on HF | `2026-06-05 02:03:54+00:00` |
61
+ | Inventory snapshot | `2026-07-16T16:00:34Z` |
62
+
63
+ ## How To Read This Dataset
64
+
65
+ - Start from the repository files and the dataset viewer when available.
66
+ - Treat the README context as a fast orientation layer; confirm variable definitions and units in the data files before modeling.
67
+ - Use explicit country columns when present. When geography is only implied by the title or source metadata, document that assumption in downstream analysis.
68
+ - Preserve missing values until you have a defensible imputation rule.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
 
70
  ## Usage
71
 
 
73
  from datasets import load_dataset
74
 
75
  ds = load_dataset("electricsheepafrica/africa-owid-deaths-from-terrorism-by-target")
76
+ print(ds)
77
+
78
+ split_name = next(iter(ds))
79
+ table = ds[split_name]
80
+ print(table.features)
81
+ print(table[:3])
82
  ```
83
 
84
+ ### Convert To Pandas When Tabular
85
 
86
  ```python
87
+ from datasets import Dataset
88
+
89
+ first_split = ds[next(iter(ds))]
90
+ if isinstance(first_split, Dataset):
91
+ df = first_split.to_pandas()
92
+ print(df.head())
93
  ```
94
 
95
+ ## Data Quality Notes
96
 
97
+ - This card was standardized from the Electric Sheep Africa Hugging Face metadata inventory.
98
+ - Exact schema, row counts, and source files should be inspected in the repository data files.
99
+ - Metadata gaps from the inventory: country, upstream_publisher.
100
+ - Do not infer policy meaning from labels alone; confirm definitions, units, and methods in the source material.
101
+
102
+ ## Source And Provenance
103
+
104
+ - **Source context:** Electric Sheep Africa metadata inventory
105
+ - **Publisher/source attribution:** Public dataset metadata
106
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
107
+ - **Hugging Face URL:** [https://huggingface.co/datasets/electricsheepafrica/africa-owid-deaths-from-terrorism-by-target](https://huggingface.co/datasets/electricsheepafrica/africa-owid-deaths-from-terrorism-by-target)
108
+ - **Inventory retrieved at:** `2026-07-16T16:00:34Z`
109
+
110
+ ## Suggested Analyses
111
+
112
+ - Inspect schema and missingness before modeling.
113
+ - Profile variables by geography, time, and subgroup columns where present.
114
+ - Join with other Electric Sheep Africa datasets using explicit country, year, and indicator fields when available.
115
+ - Build reproducible notebooks that cite both the original source context and the Electric Sheep Africa Hugging Face repo.
116
 
117
  ## Citation
118
 
119
  ```bibtex
120
+ @misc{electric_sheep_africa_africa_owid_deaths_from_terrorism_by_target_2026,
121
+ title = {Deaths From Terrorism By Target | Africa (Our World in Data) | Africa (Electric Sheep Africa metadata inventory)},
122
+ author = {Public dataset metadata},
123
+ year = {2026},
124
+ url = {https://huggingface.co/datasets/electricsheepafrica/africa-owid-deaths-from-terrorism-by-target},
125
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
126
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-owid-deaths-from-terrorism-by-target}}
127
  }
128
  ```
129
 
130
  ## License
131
 
132
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
 
 
133
 
134
+ 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.
135
 
136
+ ## About Electric Sheep Africa
137
 
138
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
139
 
140
  ---
141
 
142
+ Provenance: metadata-backed README standardized 2026-08-12 by the Electric Sheep Africa README system. Inventory source: `catalog/esa_metadata_inventory/master_metadata.jsonl`.