# The importsimport pandas as pdimport numpy as npfrom matplotlib import pyplot as pltimport requestsimport geopandas as gpdimport hvplot.pandasimport rasterio as rioimport rioxarrayimport xarray as xrimport hvplot.xarrayimport panel as pnimport osmnx as oxfrom shapely.geometry import Pointimport seaborn as snsimport contextily as ctx# Make sure plots show up in JupyterLab!%matplotlib inline
1. Hong Kong Population
Areas with higher populations tend to experience a more pronounced UHI effect due to increased heat generation and retention associated with human activities and urban infrastructure. As such, we collect 2011/2016/2021 demographic data from Hong Kong Common Spatial Data Infrastructure Portal to see the distribution and trend of population. Specifically, we look into total population and average age in the exploratory analysis.
OBJECTID
分區
District
人口密度
Population_Density
Shape__Area
Shape__Length
總人口
Total_population
geometry
0
1
黃大仙
Wong Tai Sin
43730
43730
1.092784e+07
17995.640782
406802
406802
POLYGON ((114.17942 22.34905, 114.17946 22.349...
1
2
九龍城
Kowloon City
40994
40994
1.184286e+07
31834.409404
410634
410634
MULTIPOLYGON (((114.17700 22.34904, 114.17702 ...
2
3
觀塘
Kwun Tong
59704
59704
1.322124e+07
25496.700164
673166
673166
POLYGON ((114.24371 22.28620, 114.24370 22.286...
3
4
西貢
Sai Kung
3771
3771
1.602944e+08
365545.476363
489037
489037
MULTIPOLYGON (((114.22112 22.35318, 114.22114 ...
4
5
北區
North
2269
2269
1.619184e+08
192815.532996
309631
309631
MULTIPOLYGON (((114.33576 22.51003, 114.33576 ...
OBJECTID
ID
CNAME
CNAME_S
ENAME
Shape__Area
Shape__Length
geometry
0
1
1
黃大仙區
黄大仙区
WONG TAI SIN
1.092784e+07
17995.640782
POLYGON ((114.17942 22.34905, 114.17946 22.349...
1
2
6
九龍城區
九龙城区
KOWLOON CITY
1.184286e+07
31834.409404
MULTIPOLYGON (((114.17700 22.34904, 114.17702 ...
2
3
7
觀塘區
观塘区
KWUN TONG
1.322124e+07
25496.700164
POLYGON ((114.24371 22.28620, 114.24370 22.286...
3
4
8
西貢區
西贡区
SAI KUNG
1.602944e+08
365545.476363
MULTIPOLYGON (((114.22112 22.35318, 114.22114 ...
4
5
11
北區
北区
NORTH
1.619184e+08
192815.532996
MULTIPOLYGON (((114.33576 22.51003, 114.33576 ...
OBJECTID
District
Population_Density
Shape__Area
Shape__Length
Total_population
geometry
0
1
Wong Tai Sin
43730
1.092784e+07
17995.640782
406802
POLYGON ((114.17942 22.34905, 114.17946 22.349...
1
2
Kowloon City
40994
1.184286e+07
31834.409404
410634
MULTIPOLYGON (((114.17700 22.34904, 114.17702 ...
2
3
Kwun Tong
59704
1.322124e+07
25496.700164
673166
POLYGON ((114.24371 22.28620, 114.24370 22.286...
3
4
Sai Kung
3771
1.602944e+08
365545.476363
489037
MULTIPOLYGON (((114.22112 22.35318, 114.22114 ...
4
5
North
2269
1.619184e+08
192815.532996
309631
MULTIPOLYGON (((114.33576 22.51003, 114.33576 ...
As seen in the map, the population is primarily concentrated in the central urban districts, which include Kwun Tong District, Yau Tsim Mong District, Kowloon City District, Wong Tai Sin District, Sham Shui Po District, and Eastern District across Victoria Harbour. The population density diminishes as the distance from the center increases.
<Response [200]>
<Response [200]>
We have developed an interactive dashboard that provides demographic data for the years 2011, 2016, and 2021, organized by District Council District. This dashboard offers a detailed breakdown of densely populated areas, with a particular focus on the central urban district. Interestingly, we can also identify numerous smaller districts with significant population clusters in the outskirts of Hong Kong. For average age distribution especially in recent years, they are more likely to cluster in the core areas, followed by the New Territories in the north.