Dataset Viewer
Auto-converted to Parquet Duplicate
year
int64
1.98k
2.01k
country_or_territory_of_asylum_or_residence
stringclasses
54 values
country_or_territory_of_origin
stringclasses
1 value
refugees
float64
0
8.68k
refugees_assisted_by_unhcr
float64
0
4.78k
total_refugees_and_people_in_refugee_like_situations
float64
0
8.68k
total_refugees_and_people_in_refugee_like_situations_assisted_by_unhcr
float64
0
115
esa_source
stringclasses
1 value
esa_processed
stringdate
2026-04-17 00:00:00
2026-04-17 00:00:00
2,011
SUD
KEN
2
1
2
1
HDX
2026-04-17
1,996
SWE
KEN
62
null
62
null
HDX
2026-04-17
2,003
GFR
KEN
227
null
227
null
HDX
2026-04-17
2,008
LVA
KEN
2
null
2
null
HDX
2026-04-17
2,006
SWI
KEN
18
null
18
null
HDX
2026-04-17
2,005
ETH
KEN
null
null
null
null
HDX
2026-04-17
2,007
USA
KEN
1,856
null
1,856
null
HDX
2026-04-17
2,007
GRE
KEN
3
null
3
null
HDX
2026-04-17
2,002
IRE
KEN
32
null
32
null
HDX
2026-04-17
2,003
ZIM
KEN
7
7
7
7
HDX
2026-04-17
2,006
GRE
KEN
3
null
3
null
HDX
2026-04-17
2,008
GFR
KEN
284
null
284
null
HDX
2026-04-17
1,999
POL
KEN
1
null
1
null
HDX
2026-04-17
2,008
KOR
KEN
1
null
1
null
HDX
2026-04-17
2,001
ETH
KEN
3
3
3
3
HDX
2026-04-17
1,999
CAN
KEN
null
null
null
null
HDX
2026-04-17
2,007
SPA
KEN
null
null
null
null
HDX
2026-04-17
2,002
MLW
KEN
null
null
null
null
HDX
2026-04-17
2,004
GRE
KEN
3
null
3
null
HDX
2026-04-17
1,997
GBR
KEN
80
null
80
null
HDX
2026-04-17
2,001
HUN
KEN
1
null
1
null
HDX
2026-04-17
2,010
DEN
KEN
7
0
7
0
HDX
2026-04-17
2,004
CAR
KEN
1
null
1
null
HDX
2026-04-17
2,007
IRE
KEN
105
null
105
null
HDX
2026-04-17
2,000
USA
KEN
449
null
449
null
HDX
2026-04-17
2,012
KOR
KEN
3
1
3
1
HDX
2026-04-17
2,002
SWE
KEN
54
null
54
null
HDX
2026-04-17
2,011
IRE
KEN
96
0
96
0
HDX
2026-04-17
1,993
SWA
KEN
1
null
1
null
HDX
2026-04-17
2,002
SWA
KEN
1
null
1
null
HDX
2026-04-17
1,998
SWI
KEN
2
null
2
null
HDX
2026-04-17
2,005
FRA
KEN
12
null
12
null
HDX
2026-04-17
2,012
NZL
KEN
2
0
2
0
HDX
2026-04-17
1,997
NOR
KEN
63
null
63
null
HDX
2026-04-17
2,011
AUS
KEN
20
0
20
0
HDX
2026-04-17
2,003
SWE
KEN
46
null
46
null
HDX
2026-04-17
2,005
RSA
KEN
14
null
14
null
HDX
2026-04-17
2,008
TRT
KEN
1
1
1
1
HDX
2026-04-17
2,004
SPA
KEN
4
null
4
null
HDX
2026-04-17
2,009
ICE
KEN
1
null
1
0
HDX
2026-04-17
2,000
SWA
KEN
1
1
1
1
HDX
2026-04-17
2,012
SWA
KEN
2
0
2
0
HDX
2026-04-17
2,009
ARG
KEN
1
1
1
1
HDX
2026-04-17
2,002
CAN
KEN
347
null
347
null
HDX
2026-04-17
2,006
NET
KEN
28
null
28
null
HDX
2026-04-17
2,001
DEN
KEN
14
null
14
null
HDX
2026-04-17
2,011
ITA
KEN
71
0
71
0
HDX
2026-04-17
2,000
AUL
KEN
75
null
75
null
HDX
2026-04-17
2,012
NOR
KEN
16
0
16
0
HDX
2026-04-17
2,012
IRE
KEN
78
0
78
0
HDX
2026-04-17
2,005
SWE
KEN
38
null
38
null
HDX
2026-04-17
2,011
POR
KEN
1
0
1
0
HDX
2026-04-17
2,006
SPA
KEN
4
null
4
null
HDX
2026-04-17
1,996
AUL
KEN
21
null
21
null
HDX
2026-04-17
2,010
IRE
KEN
105
0
105
0
HDX
2026-04-17
2,002
MEX
KEN
1
null
1
null
HDX
2026-04-17
2,001
AUL
KEN
74
null
74
null
HDX
2026-04-17
2,012
NET
KEN
32
0
32
0
HDX
2026-04-17
2,005
GBR
KEN
1,563
null
1,563
null
HDX
2026-04-17
1,997
ZIM
KEN
1
null
1
null
HDX
2026-04-17
2,003
FRA
KEN
11
null
11
null
HDX
2026-04-17
2,012
BOT
KEN
4
4
4
4
HDX
2026-04-17
2,009
BEL
KEN
16
0
16
0
HDX
2026-04-17
2,011
CAN
KEN
942
0
942
0
HDX
2026-04-17
1,993
BOT
KEN
2
null
2
null
HDX
2026-04-17
2,004
ROM
KEN
null
1
null
1
HDX
2026-04-17
2,012
ICE
KEN
4
0
4
0
HDX
2026-04-17
1,995
ZIM
KEN
2
null
2
null
HDX
2026-04-17
2,001
SWI
KEN
9
null
9
null
HDX
2026-04-17
2,012
AUS
KEN
24
0
24
0
HDX
2026-04-17
2,005
BOT
KEN
8
8
8
8
HDX
2026-04-17
1,998
ZIM
KEN
6
null
6
null
HDX
2026-04-17
2,011
MEX
KEN
1
1
1
1
HDX
2026-04-17
2,010
UGA
KEN
1,397
1,397
1,397
null
HDX
2026-04-17
2,002
GFR
KEN
179
null
179
null
HDX
2026-04-17
2,004
DEN
KEN
16
null
16
null
HDX
2026-04-17
2,012
RSA
KEN
53
6
53
6
HDX
2026-04-17
1,998
UGA
KEN
42
null
42
null
HDX
2026-04-17
2,007
CAN
KEN
760
null
760
null
HDX
2026-04-17
2,012
POL
KEN
5
0
5
0
HDX
2026-04-17
2,012
CHL
KEN
2
1
2
1
HDX
2026-04-17
2,007
AUL
KEN
74
null
74
null
HDX
2026-04-17
1,996
UGA
KEN
46
null
46
null
HDX
2026-04-17
2,010
SWI
KEN
32
0
32
0
HDX
2026-04-17
2,012
USA
KEN
2,512
0
2,512
0
HDX
2026-04-17
2,008
BEL
KEN
9
null
9
null
HDX
2026-04-17
1,994
ETH
KEN
8,188
null
8,188
null
HDX
2026-04-17
2,009
CAN
KEN
849
null
849
0
HDX
2026-04-17
2,009
AUL
KEN
33
null
33
0
HDX
2026-04-17
2,004
BOT
KEN
11
11
11
11
HDX
2026-04-17
2,008
ITA
KEN
31
null
31
null
HDX
2026-04-17
2,007
SYR
KEN
3
3
3
3
HDX
2026-04-17
2,007
RSA
KEN
32
30
32
30
HDX
2026-04-17
2,009
UGA
KEN
1,684
1,684
1,684
null
HDX
2026-04-17
2,007
ICE
KEN
1
null
1
null
HDX
2026-04-17
1,998
NOR
KEN
75
null
75
null
HDX
2026-04-17
1,998
ETH
KEN
4,941
null
4,941
null
HDX
2026-04-17
2,004
USA
KEN
856
null
856
null
HDX
2026-04-17
2,001
MEX
KEN
1
null
1
null
HDX
2026-04-17
1,995
NET
KEN
2
null
2
null
HDX
2026-04-17
End of preview. Expand in Data Studio

Number of Refugees from Kenya

Publisher: UNHCR - The UN Refugee Agency · Source: HDX · License: other-pd-nr · Updated: 2022-09-23


Abstract

The UNHCR Refugee Population statistics are compiled and curated at headquarters-level and released yearly at the same time of the UNHCR Statistical Yearbooks. This is a subset of the data only with refugees from Kenya. The full dataset is available here.

This dataset contains refugee population statistics from 1975 until 2012.

Each row in this dataset represents country-level aggregates. Data was last updated on HDX on 2022-09-23. Geographic scope: KEN.

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


Dataset Characteristics

Domain Demographics and population
Unit of observation Country-level aggregates
Rows (total) 526
Columns 9 (5 numeric, 4 categorical, 0 datetime)
Train split 420 rows
Test split 105 rows
Geographic scope KEN
Publisher UNHCR - The UN Refugee Agency
HDX last updated 2022-09-23

Variables

Geographicyear (range 1975.0–2012.0), country_or_territory_of_asylum_or_residence (GBR, DEN, SWE), country_or_territory_of_origin (KEN), refugees_assisted_by_unhcr (range 0.0–4783.0), total_refugees_and_people_in_refugee_like_situations_assisted_by_unhcr (range 0.0–133.0).

Outcome / Measurementtotal_refugees_and_people_in_refugee_like_situations (range 0.0–8680.0).

Identifier / Metadatarefugees (range 0.0–8680.0), esa_source (HDX), esa_processed (2026-04-17).


Quick Start

from datasets import load_dataset

ds    = load_dataset("electricsheepafrica/africa-number-of-refugees-from-kenya")
train = ds["train"].to_pandas()
test  = ds["test"].to_pandas()

print(train.shape)
train.head()

Schema

Column Type Null % Range / Sample Values
year int64 0.0% 1975.0 – 2012.0 (mean 2003.9487)
country_or_territory_of_asylum_or_residence object 0.0% GBR, DEN, SWE
country_or_territory_of_origin object 0.0% KEN
refugees float64 5.3% 0.0 – 8680.0 (mean 257.755)
refugees_assisted_by_unhcr float64 63.7% 0.0 – 4783.0 (mean 151.7016)
total_refugees_and_people_in_refugee_like_situations float64 5.3% 0.0 – 8680.0 (mean 257.755)
total_refugees_and_people_in_refugee_like_situations_assisted_by_unhcr float64 63.3% 0.0 – 133.0 (mean 4.9067)
esa_source object 0.0% HDX
esa_processed object 0.0% 2026-04-17

Numeric Summary

Column Min Max Mean Median
year 1975.0 2012.0 2003.9487 2005.0
refugees 0.0 8680.0 257.755 8.0
refugees_assisted_by_unhcr 0.0 4783.0 151.7016 1.0
total_refugees_and_people_in_refugee_like_situations 0.0 8680.0 257.755 8.0
total_refugees_and_people_in_refugee_like_situations_assisted_by_unhcr 0.0 133.0 4.9067 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 UNHCR - The UN Refugee Agency and has not been independently validated by ESA.
  • Automated cleaning cannot correct for misreported values, definitional inconsistencies, or sampling bias in the original collection.
  • The following columns have >20% missing values and should be treated with caution in modelling: refugees_assisted_by_unhcr, total_refugees_and_people_in_refugee_like_situations_assisted_by_unhcr.
  • Refer to the original HDX dataset page for the publisher's own methodology notes and caveats.

Citation

@dataset{hdx_africa_number_of_refugees_from_kenya,
  title     = {Number of Refugees from Kenya},
  author    = {UNHCR - The UN Refugee Agency},
  year      = {2022},
  url       = {https://data.humdata.org/dataset/number-of-refugees-from-kenya},
  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
60

Collection including electricsheepafrica/africa-number-of-refugees-from-kenya