National Refugee Statistics#
Assignment#
The team is exploring multiple datasets that provide insights on refugee movements to Lebanon.
Data#
United Nations High Commissioner for Refugees#
UNHCR on their operations data portal released statistics since 2001 showing national migration statistics to Lebanon from 61 countries. These statistics are broken down by the age demographic of the migrants
Show code cell source
fig, ax = plt.subplots()
# plt.axis('off')
unhcr.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Total", ax=ax)
unhcr.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female total", ax=ax)
unhcr.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male total", ax=ax)
plt.title("Total refugee population to Lebanon", fontsize=12, ha="center")
subtitle_text = "Source: UNHCR"
ax.text(-0.05, -0.1, subtitle_text, transform=ax.transAxes, fontsize=10, ha="left")
Text(-0.05, -0.1, 'Source: UNHCR')
Show code cell source
import matplotlib.pyplot as plt
fig, ax = plt.subplots(1, 2, figsize=(16, 4), sharex=True, sharey=True)
# plt.axis('off')
# syria.groupby([ 'Year']).sum().reset_index().plot(x='Year', y='Total', ax=ax)
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female other", ax=ax[0])
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female 0 - 4", ax=ax[0])
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female 5 - 11", ax=ax[0])
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female 12 - 17", ax=ax[0])
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female 18 - 59", ax=ax[0])
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female 60", ax=ax[0])
ax[0].set_title(
"Female refugee population to Lebanon from Syria", fontsize=12, ha="center"
)
subtitle_text = "Source: UNHCR"
ax[0].text(
-0.05, -0.2, subtitle_text, transform=ax[0].transAxes, fontsize=10, ha="left"
)
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male other", ax=ax[1])
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male 0 - 4", ax=ax[1])
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male 5 - 11", ax=ax[1])
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male 12 - 17", ax=ax[1])
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male 18 - 59", ax=ax[1])
syria.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male 60", ax=ax[1])
ax[1].set_title(
"Male refugee population to Lebanon from Syria", fontsize=12, ha="center"
)
subtitle_text = "Source: UNHCR"
ax[0].text(
-0.05, -0.2, subtitle_text, transform=ax[0].transAxes, fontsize=10, ha="left"
)
Text(-0.05, -0.2, 'Source: UNHCR')
Show code cell source
import matplotlib.pyplot as plt
fig, ax = plt.subplots(1, 2, figsize=(16, 4), sharex=True, sharey=True)
# plt.axis('off')
# syria.groupby([ 'Year']).sum().reset_index().plot(x='Year', y='Total', ax=ax)
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female other", ax=ax[0])
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female 0 - 4", ax=ax[0])
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female 5 - 11", ax=ax[0])
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female 12 - 17", ax=ax[0])
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female 18 - 59", ax=ax[0])
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Female 60", ax=ax[0])
ax[0].set_title(
"Female refugee population to Lebanon from Iraq", fontsize=12, ha="center"
)
subtitle_text = "Source: UNHCR"
ax[0].text(
-0.05, -0.2, subtitle_text, transform=ax[0].transAxes, fontsize=10, ha="left"
)
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male other", ax=ax[1])
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male 0 - 4", ax=ax[1])
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male 5 - 11", ax=ax[1])
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male 12 - 17", ax=ax[1])
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male 18 - 59", ax=ax[1])
iraq.groupby(["Year"]).sum().reset_index().plot(x="Year", y="Male 60", ax=ax[1])
ax[1].set_title(
"Male refugee population to Lebanon from Iraq", fontsize=12, ha="center"
)
subtitle_text = "Source: UNHCR"
ax[0].text(
-0.05, -0.2, subtitle_text, transform=ax[0].transAxes, fontsize=10, ha="left"
)
Text(-0.05, -0.2, 'Source: UNHCR')