National Refugee Statistics

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

Hide 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')
../../_images/7a690eccb86327935697a0c9f05bc7ccadbc339a4a011ec06ef3e0acc05cb1ed.png
Hide 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')
../../_images/e90c71ea0a74a36ceb13a9bb7a494048fbc4a24e73a4ace1f5070441249f4e44.png
Hide 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')
../../_images/f892919473163e860ebfcd0dcc0e8345bcc1bc54cd8c360688bfe65a2783b649.png