Skip to main content

A python package to make data from stadincijfers easely 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:

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:

  1. List periodlevels in the SIC site of Antwerp.
    from stadincijfers import stadincijfers
    sic = stadincijfers("antwerpen") #or gent or provincies or url
    sic.periodlevels() #=> get all periodslevels
  1. 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

stadincijfers-0.1.3.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file stadincijfers-0.1.3.tar.gz.

File metadata

  • Download URL: stadincijfers-0.1.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.8.1 keyring/21.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.11

File hashes

Hashes for stadincijfers-0.1.3.tar.gz
Algorithm Hash digest
SHA256 157e3ce457aa55e670875f2480939908f88b9fde23b878b7d3afc774f8e51c8c
MD5 53fee23b9bae9a5aa704a65066dc8dc7
BLAKE2b-256 3ee8202607c3df5c211d3c2085a4b45a3c7cd1a3d59847bf026fd1d3fe8a2c2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page