alifeee / occupation-data

Plotting Industry and occupation data from the ONS 2021 Census

Home Page:http://server.alifeee.co.uk/occupation-data/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Occupation data

Plotting Industry and occupation data from the ONS 2021 census.

See example on http://server.alifeee.co.uk/occupation-data/ or in plot.ipynb

screenshot of pie chart showing occupation data for Sheffield

Dataset: https://www.ons.gov.uk/datasets/TS060/editions/2021/versions/1

Use

Install required Python modules

python -m venv env
. ./env/bin/activate
pip install -r requirements.txt

With Jupyter Notebook

Open plot.ipynb.

As a CGI script

Install to location

mkdir -p /var/www/cgi/
cd /var/www/cgi/
git clone git@github.com:alifeee/occupation-data
cd occupation-data
python -m venv env
. ./env/bin/activate
pip install -r requirements.txt

Install fastcgi

sudo apt-get install fastcgi

Add the following to nginx config

                location /occupation-data/ {
			fastcgi_index index.cgi;
                        fastcgi_intercept_errors on;
                        include fastcgi_params;
                        fastcgi_param SCRIPT_FILENAME /var/www/cgi/$fastcgi_script_name;
                        fastcgi_pass unix:/var/run/fcgiwrap.socket;
                }

About

Plotting Industry and occupation data from the ONS 2021 Census

http://server.alifeee.co.uk/occupation-data/


Languages

Language:Jupyter Notebook 99.2%Language:Python 0.8%