electricsheepafrica/africa-terrorism-attacks-in-kenya
收藏Hugging Face2026-04-27 更新2026-05-03 收录
下载链接:
https://hf-mirror.com/datasets/electricsheepafrica/africa-terrorism-attacks-in-kenya
下载链接
链接失效反馈官方服务:
资源简介:
---
annotations_creators:
- no-annotation
language_creators:
- found
language:
- en
license: cc-by-4.0
multilinguality:
- monolingual
size_categories:
- n<1K
source_datasets:
- original
task_categories:
- tabular-classification
- tabular-regression
task_ids: []
tags:
- africa
- humanitarian
- hdx
- electric-sheep-africa
- al-shabab
- bombing
- crime-statistics
- police
- terror-attack
- terrorism
- armed-conflict
- kenya
pretty_name: "Terrorism Attacks in Kenya"
dataset_info:
splits:
- name: train
num_examples: 116
- name: test
num_examples: 29
---
# Terrorism Attacks in Kenya
**Publisher:** Code for Africa · **Source:** [OpenAfrica](https://open.africa/dataset/terrorism-attacks-in-kenya) · **License:** `cc-by` · **Updated:** 2023-11-30
---
## Abstract
The National Counter Terrorism Centre's dataset chronicling the government's 'official' tally of terror related attacks in Kenya, dating from 1975.
Each row in this dataset represents tabular records. Temporal coverage is indicated by the `1975_02_01_00_00_00` column(s). Geographic scope: **ARMED-CONFLICT, KENYA**.
*Curated into ML-ready Parquet format by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica).*
---
## Dataset Characteristics
| | |
|---|---|
| **Domain** | Humanitarian and development data |
| **Unit of observation** | Tabular records |
| **Rows (total)** | 145 |
| **Columns** | 4 (0 numeric, 3 categorical, 1 datetime) |
| **Train split** | 116 rows |
| **Test split** | 29 rows |
| **Geographic scope** | ARMED-CONFLICT, KENYA |
| **Publisher** | Code for Africa |
| **OpenAfrica last updated** | 2023-11-30 |
---
## Variables
**Geographic** — `two_explosions_occurred_in_ncbd_at_starlight_nightclub_and_travel_bureau_near_hilton_hotel_in_nairobi` (At 2100hrs, an IED was detonated within Eastleigh North .One male adult was injured., A blast occurred in OTC bus terminus killing 30 people., Suspected Islamic militants shot dead 5 people and injured 3 others at a restaurant in the Eastern city of Garissa.Authorities said they believed the gunmen belonged to the Al-Shabaab group, as the victims included a senior prison warden, fitting a pattern of attacks against security forces.).
**Identifier / Metadata** — `esa_source` (HDX), `esa_processed` (2026-04-27).
**Other** — `1975_02_01_00_00_00`.
---
## Quick Start
```python
from datasets import load_dataset
ds = load_dataset("electricsheepafrica/africa-terrorism-attacks-in-kenya")
train = ds["train"].to_pandas()
test = ds["test"].to_pandas()
print(train.shape)
train.head()
```
---
## Schema
| Column | Type | Null % | Range / Sample Values |
|---|---|---|---|
| `1975_02_01_00_00_00` | datetime64[ns] | 0.0% | |
| `two_explosions_occurred_in_ncbd_at_starlight_nightclub_and_travel_bureau_near_hilton_hotel_in_nairobi` | object | 0.0% | At 2100hrs, an IED was detonated within Eastleigh North .One male adult was injured., A blast occurred in OTC bus terminus killing 30 people., Suspected Islamic militants shot dead 5 people and injured 3 others at a restaurant in the Eastern city of Garissa.Authorities said they believed the gunmen belonged to the Al-Shabaab group, as the victims included a senior prison warden, fitting a pattern of attacks against security forces. |
| `esa_source` | object | 0.0% | HDX |
| `esa_processed` | object | 0.0% | 2026-04-27 |
---
## Numeric Summary
| Column | Min | Max | Mean | Median |
|---|---|---|---|---|
_No numeric columns._
---
## Curation
Raw data was downloaded from OpenAfrica 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 exact duplicate rows were removed. The dataset was split 80/20 into train and test partitions using a fixed random seed (42) and saved as Snappy-compressed Parquet.
---
## Limitations
- Data originates from Code for Africa and has not been independently validated by ESA.
- Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
- This dataset spans 2 countries; geographic and methodological inconsistencies across national boundaries may affect cross-country comparability.
- Refer to the [original HDX dataset page](https://open.africa/dataset/terrorism-attacks-in-kenya) for the publisher's own methodology notes and caveats.
---
## Citation
```bibtex
@dataset{openafrica_africa_terrorism_attacks_in_kenya,
title = {Terrorism Attacks in Kenya},
author = {Code for Africa},
year = {2023},
url = {https://open.africa/dataset/terrorism-attacks-in-kenya},
note = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
}
```
---
*[Electric Sheep Africa](https://huggingface.co/electricsheepafrica) — Africa's ML dataset infrastructure. Lagos, Nigeria.*
提供机构:
electricsheepafrica



