Dataset Viewer
Auto-converted to Parquet Duplicate
country_id
int64
242
242
month_id
int64
555
589
name
stringclasses
1 value
gwcode
int64
510
510
isoab
stringclasses
1 value
year
int64
2.03k
2.03k
month
int64
1
12
main_mean_ln
float64
0.08
0.34
main_mean
float64
0.09
0.41
main_dich
float64
0
0
esa_source
stringclasses
1 value
esa_processed
stringdate
2026-04-07 00:00:00
2026-04-07 00:00:00
242
563
Tanzania
510
TZA
2,026
11
0.1071
0.1131
0
HDX
2026-04-07
242
572
Tanzania
510
TZA
2,027
8
0.2294
0.2579
0
HDX
2026-04-07
242
564
Tanzania
510
TZA
2,026
12
0.1137
0.1205
0
HDX
2026-04-07
242
589
Tanzania
510
TZA
2,029
1
0.2971
0.346
0
HDX
2026-04-07
242
555
Tanzania
510
TZA
2,026
3
0.0847
0.0884
0
HDX
2026-04-07
242
559
Tanzania
510
TZA
2,026
7
0.1282
0.1368
0
HDX
2026-04-07
242
584
Tanzania
510
TZA
2,028
8
0.2288
0.2571
0
HDX
2026-04-07
242
570
Tanzania
510
TZA
2,027
6
0.1854
0.2037
0
HDX
2026-04-07
242
574
Tanzania
510
TZA
2,027
10
0.1878
0.2066
0
HDX
2026-04-07
242
560
Tanzania
510
TZA
2,026
8
0.1341
0.1435
0
HDX
2026-04-07
242
566
Tanzania
510
TZA
2,027
2
0.1279
0.1365
0
HDX
2026-04-07
242
556
Tanzania
510
TZA
2,026
4
0.093
0.0975
0
HDX
2026-04-07
242
579
Tanzania
510
TZA
2,028
3
0.2366
0.2669
0
HDX
2026-04-07
242
557
Tanzania
510
TZA
2,026
5
0.1388
0.1489
0
HDX
2026-04-07
242
588
Tanzania
510
TZA
2,028
12
0.2705
0.3107
0
HDX
2026-04-07
242
558
Tanzania
510
TZA
2,026
6
0.1268
0.1351
0
HDX
2026-04-07
242
587
Tanzania
510
TZA
2,028
11
0.2231
0.2499
0
HDX
2026-04-07
242
578
Tanzania
510
TZA
2,028
2
0.2028
0.2249
0
HDX
2026-04-07
242
582
Tanzania
510
TZA
2,028
6
0.2635
0.3014
0
HDX
2026-04-07
242
565
Tanzania
510
TZA
2,027
1
0.1001
0.1053
0
HDX
2026-04-07
242
577
Tanzania
510
TZA
2,028
1
0.1743
0.1904
0
HDX
2026-04-07
242
573
Tanzania
510
TZA
2,027
9
0.1706
0.1861
0
HDX
2026-04-07
242
580
Tanzania
510
TZA
2,028
4
0.1969
0.2177
0
HDX
2026-04-07
242
561
Tanzania
510
TZA
2,026
9
0.1101
0.1163
0
HDX
2026-04-07
242
575
Tanzania
510
TZA
2,027
11
0.1885
0.2074
0
HDX
2026-04-07
242
562
Tanzania
510
TZA
2,026
10
0.0973
0.1022
0
HDX
2026-04-07
242
569
Tanzania
510
TZA
2,027
5
0.342
0.4077
0
HDX
2026-04-07
242
583
Tanzania
510
TZA
2,028
7
0.2258
0.2534
0
HDX
2026-04-07

United Republic of Tanzania - VIEWS conflict forecasts

Publisher: Violence & Impacts Early-Warning System · Source: HDX · License: cc-by-sa · Updated: 2026-04-01


Abstract

The Violence & Impacts Early-Warning System (VIEWS) is an award-winning conflict prediction system that generates monthly forecasts for violent conflicts across the world up to three years in advance. It is supported by the iterative research and development activities undertaken by the VIEWS consortium.

Each row in this dataset represents country-level aggregates. Data was last updated on HDX on 2026-04-01. Geographic scope: TZA.

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


Dataset Characteristics

Domain Conflict and security
Unit of observation Country-level aggregates
Rows (total) 36
Columns 12 (8 numeric, 4 categorical, 0 datetime)
Train split 28 rows
Test split 7 rows
Geographic scope TZA
Publisher Violence & Impacts Early-Warning System
HDX last updated 2026-04-01

Variables

Geographiccountry_id (range 242.0–242.0), isoab (TZA), year (range 2026.0–2029.0).

Temporalmonth_id (range 555.0–590.0), month (range 1.0–12.0).

Identifier / Metadataname (Tanzania), gwcode (range 510.0–510.0), esa_source (HDX), esa_processed (2026-04-07).

Othermain_mean_ln (range 0.0847–0.371), main_mean (range 0.0884–0.4492), main_dich (range 0.0–0.0).


Quick Start

from datasets import load_dataset

ds    = load_dataset("electricsheepafrica/africa-tza-views-conflict-forecasts")
train = ds["train"].to_pandas()
test  = ds["test"].to_pandas()

print(train.shape)
train.head()

Schema

Column Type Null % Range / Sample Values
country_id int64 0.0% 242.0 – 242.0 (mean 242.0)
month_id int64 0.0% 555.0 – 590.0 (mean 572.5)
name object 0.0% Tanzania
gwcode int64 0.0% 510.0 – 510.0 (mean 510.0)
isoab object 0.0% TZA
year int64 0.0% 2026.0 – 2029.0 (mean 2027.1667)
month int64 0.0% 1.0 – 12.0 (mean 6.5)
main_mean_ln float64 0.0% 0.0847 – 0.371 (mean 0.1933)
main_mean float64 0.0% 0.0884 – 0.4492 (mean 0.2164)
main_dich float64 0.0% 0.0 – 0.0 (mean 0.0)
esa_source object 0.0% HDX
esa_processed object 0.0% 2026-04-07

Numeric Summary

Column Min Max Mean Median
country_id 242.0 242.0 242.0 242.0
month_id 555.0 590.0 572.5 572.5
gwcode 510.0 510.0 510.0 510.0
year 2026.0 2029.0 2027.1667 2027.0
month 1.0 12.0 6.5 6.5
main_mean_ln 0.0847 0.371 0.1933 0.1881
main_mean 0.0884 0.4492 0.2164 0.207
main_dich 0.0 0.0 0.0 0.0

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. 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 Violence & Impacts Early-Warning System 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_africa_tza_views_conflict_forecasts,
  title     = {United Republic of Tanzania - VIEWS conflict forecasts},
  author    = {Violence & Impacts Early-Warning System},
  year      = {2026},
  url       = {https://data.humdata.org/dataset/tza-views-conflict-forecasts},
  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
25

Collection including electricsheepafrica/africa-tza-views-conflict-forecasts