Skip to main content

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:

Other websites that use the same platform:

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 ima-atlas or bevolkingsonderzoek 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.2.3.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stadincijfers-0.2.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

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

Hashes for stadincijfers-0.2.3.tar.gz
Algorithm Hash digest
SHA256 465b762f8ba1b70464f0bb3e3aeb32b077ac8eab43a63b7e696c13ff1315ecca
MD5 cddc7667263b3b2e4d1346cddc721419
BLAKE2b-256 479620a79e75f740d2ab5559a16f509a92f9339b9888ff64fe27d7d782991c21

See more details on using hashes here.

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

Hashes for stadincijfers-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1dbfbccadcc560722bfc784a8792bd52af6df13676cd020b961bbf9183c1fa61
MD5 2d937414fa9cd8b81afe51183f580e75
BLAKE2b-256 f67b3a798426e6e735d95d5abde66a3dd0009dbd126c65a874573b4668e78af9

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