Data analysis and visualization of historical population trends in England.
Use the package manager pip to install following
## Prerequisites
python3 -m venv .venv
source .venv/bin/activate
uv pip install -r requirements.txt
python3 -m pip install --upgrade pipThe analysis needs a CSV file with these columns:
Year: Year of population data (format: Mid-YYYY)Annual population change: Numeric value of population change (with comma separators)
The data (Population estimates for England and Wales: mid-2024) is from Office for National Statistics.
The dataset contains quarterly migration data from June 2012 to December 2024, tracking:
- Period: Quarterly period (e.g., YE Jun 12 to YE Dec 24 P)
- Non-EU+ migration: Number of migrants from non-EU countries (e.g., 57,000 in YE Jun 12 to 544,000 in YE Dec 24 P)
- EU+ migration: Number of migrants from EU countries (e.g., 187,000 in YE Jun 12 to -96,000 in YE Dec 24 P)
- British migration: Number of migrants from the UK (e.g., -83,000 in YE Jun 12 to -17,000 in YE Dec 24 P)
- Total migration: Total number of migrants (e.g., 162,000 in YE Jun 12 to 431,000 in YE Dec 24 P)
The data (Net migration by EU+, non-EU+ and British nationality) is from Office for National Statistics.
- Click the
Runbutton to run the individual cell of the England Population - Jupyter Notebook. - Click the
Runbutton to run the individual cell of the EU and Non-EU Migration - Jupyter Notebook.
This project is licensed under the Modified MIT License.
(c) 2025 Finbarrs Oketunji. All Rights Reserved.