Dataset Viewer
Auto-converted to Parquet Duplicate
province
stringlengths
4
10
leading_tactic_or_cause
stringclasses
7 values
second_highest_tactic
stringlengths
12
28
third_highest_tactic
stringlengths
6
30
total_civilian_casualties
float64
0
1.87k
deaths
float64
0
681
injuries
float64
0
1.27k
compared_to_2017
float64
-0.48
1.7
esa_source
stringclasses
1 value
esa_processed
stringdate
2026-05-04 00:00:00
2026-05-04 00:00:00
Laghman
Ground Engagements
Targeted Killings
UXO/landmines
271
93
178
-0.23
HDX
2026-05-04
Kunar
Ground Engagements
Aerial attacks
IED (non-suicide)
397
128
269
0.77
HDX
2026-05-04
Wardak
Ground Engagements
Suicide attacks
IED (non-suicide)
224
88
136
1.7
HDX
2026-05-04
Kunduz
Ground Engagements
Aerial attacks
IEDs (non-suicide)
337
105
232
-0.11
HDX
2026-05-04
Bamyan
UXO/landmines
Ground Engagements
Threat/Intimidation/Harassment
7
1
6
0.75
HDX
2026-05-04
#adm1+name
#cause+type
null
null
null
null
null
null
HDX
2026-05-04
Ghazni
Ground Engagements
Aerial attacks
Targeted/Deliberate Killings
653
253
400
0.84
HDX
2026-05-04
Jawzjan
Ground Engagements
Aerial attacks
IEDs (non-suicide)
183
61
122
0.55
HDX
2026-05-04
Ghor
Targeted/Deliberate Killings
Ground Engagements
IEDs (non-suicide)
64
28
36
0.94
HDX
2026-05-04
Faryab
Ground Engagements
Aerial operations
UXO/landmines
646
230
416
0.01
HDX
2026-05-04
Farah
Ground Engagements
IEDs (non-suicide)
Targeted Killings
275
122
153
-0.19
HDX
2026-05-04
Kabul
Suicide/Complex Attacks
IEDs (non-suicide)
Targeted Killings
1,866
596
1,270
0.02
HDX
2026-05-04
Nangarhar
Suicide/Complex Attacks
IED (non-suicide)
Ground Engagements
1,815
681
1,134
1.11
HDX
2026-05-04
Nuristan
Ground Engagements
Targeted/Deliberate Killings
Aerial attacks
25
9
15
0.41
HDX
2026-05-04
Helmand
Ground Engagements
IED (non-suicide)
Suicide/Complex Attacks
880
281
599
-0.11
HDX
2026-05-04
Parwan
Ground Engagement
Suicide/Complex attacks
Ground Engagements
41
20
21
-0.47
HDX
2026-05-04
Takhar
Ground Engagements
IEDs (non-suicide)
Threat/Intimidation/Harassment
113
26
87
0.15
HDX
2026-05-04
Daikundi
Ground Engagement
Kidnapping/abduction
IEDs (non-suicide)
41
19
22
-0.05
HDX
2026-05-04
Zabul
Ground Engagements
IEDs (non-suicide)
UXO/landmines
293
57
236
-0.12
HDX
2026-05-04
Kapisa
Ground Engagements
Aerial attacks
IED (non-suicide)
139
39
100
0.38
HDX
2026-05-04
Khost
IEDs (non-suicide)
Targeted Killings
Search
175
84
91
-0.03
HDX
2026-05-04
Nimroz
Ground Engagements
UXO/landmine
Aerial attacks
82
18
64
-0.17
HDX
2026-05-04
Kandahar
IEDs (non-suicide)
Ground Engagements
Search operations
537
204
333
-0.25
HDX
2026-05-04
Paktika
IEDs (non-suicide)
Targeted Killings
Ground Engagements
150
67
83
-0.06
HDX
2026-05-04
Panjshir
null
null
null
0
0
0
0
HDX
2026-05-04
Paktya
Suicide/Complex Attacks
Ground Engagements
Aerial attacks
428
152
276
-0.13
HDX
2026-05-04
Herat
IEDs (non-suicide)
Ground Engagements
Targeted Killings
259
95
164
-0.48
HDX
2026-05-04
Badakhshan
Ground Engagements
Kidnapping/abduction
Targeted Killings
63
18
45
-0.03
HDX
2026-05-04

Afghanistan - Casualties

Publisher: OCHA Afghanistan · Source: HDX · License: cc-by · Updated: 2025-04-25


Abstract

Total number of civilian casualties documented in each of Afghanistan’s 34 provinces, the top three causes of civilian casualties in each province, and the percentage increase or decrease compared to 2017. For more, refer to the report from UNAMA

Each row in this dataset represents first-level administrative unit observations. Data was last updated on HDX on 2025-04-25. Geographic scope: AFG.

Curated into ML-ready Parquet format by Electric Sheep Africa.


Dataset Characteristics

Domain Humanitarian and development data
Unit of observation First-level administrative unit observations
Rows (total) 35
Columns 10 (4 numeric, 6 categorical, 0 datetime)
Train split 28 rows
Test split 7 rows
Geographic scope AFG
Publisher OCHA Afghanistan
HDX last updated 2025-04-25

Variables

Geographicprovince (#adm1+name, Kabul, Nangarhar).

Outcome / Measurementtotal_civilian_casualties (range 0.0–1866.0), deaths (range 0.0–681.0).

Identifier / Metadataesa_source (HDX), esa_processed (2026-05-04).

Otherleading_tactic_or_cause (Ground Engagements, IEDs (non-suicide), Suicide/Complex Attacks), second_highest_tactic (IEDs (non-suicide), Aerial attacks, Ground Engagements), third_highest_tactic (Targeted Killings, IEDs (non-suicide), Aerial attacks), injuries (range 0.0–1270.0), compared_to_2017 (range -0.7–1.7).


Quick Start

from datasets import load_dataset

ds    = load_dataset("electricsheepafrica/asia-afghanistan-casualties")
train = ds["train"].to_pandas()
test  = ds["test"].to_pandas()

print(train.shape)
train.head()

Schema

Column Type Null % Range / Sample Values
province object 0.0% #adm1+name, Kabul, Nangarhar
leading_tactic_or_cause object 2.9% Ground Engagements, IEDs (non-suicide), Suicide/Complex Attacks
second_highest_tactic object 5.7% IEDs (non-suicide), Aerial attacks, Ground Engagements
third_highest_tactic object 5.7% Targeted Killings, IEDs (non-suicide), Aerial attacks
total_civilian_casualties float64 2.9% 0.0 – 1866.0 (mean 323.3529)
deaths float64 2.9% 0.0 – 681.0 (mean 111.8824)
injuries float64 2.9% 0.0 – 1270.0 (mean 211.4412)
compared_to_2017 float64 2.9% -0.7 – 1.7 (mean 0.1515)
esa_source object 0.0% HDX
esa_processed object 0.0% 2026-05-04

Numeric Summary

Column Min Max Mean Median
total_civilian_casualties 0.0 1866.0 323.3529 179.0
deaths 0.0 681.0 111.8824 67.5
injuries 0.0 1270.0 211.4412 124.5
compared_to_2017 -0.7 1.7 0.1515 -0.03

Curation

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


Limitations

  • Data originates from OCHA Afghanistan and has not been independently validated by ESA.
  • Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
  • Refer to the original HDX dataset page for the publisher's own methodology notes and caveats.

Citation

@dataset{hdx_asia_afghanistan_casualties,
  title     = {Afghanistan - Casualties},
  author    = {OCHA Afghanistan},
  year      = {2025},
  url       = {https://data.humdata.org/dataset/afghanistan-casualties},
  note      = {Repackaged for machine learning by Electric Sheep Africa (https://huggingface.co/electricsheepafrica)}
}

Electric Sheep Africa — Africa's ML dataset infrastructure. Lagos, Nigeria.

Downloads last month
10