A python package to make data from stadincijfers easily available for data scientists.
Project description
Stad in Cijfers, python API
Purpose
A python package to make data from stadincijfers easely available for data scientists.
Intro
Via the website 'Stad in cijfers' you can consult statistical data on various themes. In principle for the city of Antwerp, all data on 'Stad in cijfers' is open data and can therefore be used freely, unless stated otherwise.
Many local goverments in Flanders have a website like this:
- Gent: https://gent.buurtmonitor.be
- Antwerp: https://stadincijfers.antwerpen.be/databank
- The provinces: https://provincies.incijfers.be
Other websites that use the same platform:
- IMA-Atlas: https://atlas.ima-aim.be/
- Bevolkingsonderzoek: https://bevolkingsonderzoek.incijfers.be/
Installation:
from pypi:
pip install stadincijfers
or from sources:
git clone https://github.com/warrieka/stadincijfers.py
cd stadincijfers.py
pip install -r requirements.txt
pip install .
Usage:
- List periodlevels in the SIC site of Antwerp.
from stadincijfers import stadincijfers
sic = stadincijfers("antwerpen") #or gent or provincies or ima-atlas or bevolkingsonderzoek or url
sic.periodlevels() #=> get all periodslevels
- Export excel:
from stadincijfers import stadincijfers
sic = stadincijfers("antwerpen") #or gent or provincies or url
bevdicht = sic.selectiontableasDataframe('bevdicht', geolevel='sector', periodlevel='year', period=2022)
bevdicht.to_excel('data\\bevdicht2022.xlsx') # save to excel
For more see example jupyter notebook: example_usage.ipynb
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stadincijfers-0.2.3.tar.gz.
File metadata
- Download URL: stadincijfers-0.2.3.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
465b762f8ba1b70464f0bb3e3aeb32b077ac8eab43a63b7e696c13ff1315ecca
|
|
| MD5 |
cddc7667263b3b2e4d1346cddc721419
|
|
| BLAKE2b-256 |
479620a79e75f740d2ab5559a16f509a92f9339b9888ff64fe27d7d782991c21
|
File details
Details for the file stadincijfers-0.2.3-py3-none-any.whl.
File metadata
- Download URL: stadincijfers-0.2.3-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dbfbccadcc560722bfc784a8792bd52af6df13676cd020b961bbf9183c1fa61
|
|
| MD5 |
2d937414fa9cd8b81afe51183f580e75
|
|
| BLAKE2b-256 |
f67b3a798426e6e735d95d5abde66a3dd0009dbd126c65a874573b4668e78af9
|