https://github.com/danmichaelo/demographics-norway
Plots using data from Statistics Norway
https://github.com/danmichaelo/demographics-norway
Last synced: 18 days ago
JSON representation
Plots using data from Statistics Norway
- Host: GitHub
- URL: https://github.com/danmichaelo/demographics-norway
- Owner: danmichaelo
- Created: 2017-07-19T23:59:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-20T07:49:05.000Z (almost 9 years ago)
- Last Synced: 2026-03-02T02:30:35.239Z (4 months ago)
- Language: Python
- Size: 132 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demographics of Norway
Python scripts for generating a few plots for https://commons.wikimedia.org/wiki/Category:Demographics_of_Norway using data from Statistics Norway.
## Population graph and annual growth
- Run `python 'Population graphs.py'` to generate `plots/Population graph for Norway.svg`
and `plots/Annual population growth of Norway.svg`.
- Data source: [SSB table 05803](https://www.ssb.no/en/table/05803) "Population 1 January and population changes during the calendar year".
- Contents: Select the fields "Population", "Livebirths, total", "Death, total", "In-migration", "Emigration" and "Population increase, absolute figures".
- Year: Select all.
- Export as "semi-colon delimited" and save as `table05803.csv`
## Population pyramid
- Run `python 'Population pyramid.py'` to generate `plots/Population pyramid Norway.svg`.
- Data source: [SSB table 10211](https://www.ssb.no/en/table/01222) "Population, by sex and age".
- "Age": select all
- "Sex": select "Males" and "Females"
- "Year": select all years (or just the latest)
- Export as "Matrix (.TSV)" and save as `data/table10211.tsv`