Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alifeee/occupation-data
Plotting Industry and occupation data from the ONS 2021 Census
https://github.com/alifeee/occupation-data
census data-visualization employment occupation office-for-national-statistics ons pie-chart
Last synced: 11 days ago
JSON representation
Plotting Industry and occupation data from the ONS 2021 Census
- Host: GitHub
- URL: https://github.com/alifeee/occupation-data
- Owner: alifeee
- Created: 2024-07-28T13:43:14.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-07-28T18:23:41.000Z (3 months ago)
- Last Synced: 2024-07-29T15:42:07.087Z (3 months ago)
- Topics: census, data-visualization, employment, occupation, office-for-national-statistics, ons, pie-chart
- Language: Jupyter Notebook
- Homepage: http://server.alifeee.co.uk/occupation-data/
- Size: 1.24 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Occupation data
Plotting Industry and occupation data from the ONS 2021 census.
See example on or in [`plot.ipynb`](./plot.ipynb)
![screenshot of pie chart showing occupation data for Sheffield](./images/pie.png)
Dataset:
## Use
Install required Python modules
```bash
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
```bash
mkdir -p /var/www/cgi/
cd /var/www/cgi/
git clone [email protected]:alifeee/occupation-data
cd occupation-data
python -m venv env
. ./env/bin/activate
pip install -r requirements.txt
```Install fastcgi
```bash
sudo apt-get install fastcgi
```Add the following to nginx config
```nginx
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;
}
```