A Python API wrapper to Statistics Denmark's DataBank API
Project description
denstatbank
A python wrapper to Statistics Denmark's DataBank API. The package allows you to easily gather data on a variety of topics made available by Statistics Denmark
The package provides a simple interface for professional statisticians, academics, policymakers, students, and anyone interested in quantitative facts about Denmark.
Installation
The package is listed on pypi and can be installed with pip:
pip install denstatbank
Usage
Quick Example
>>> from denstatbank import StatBankClient >>> sbc = StatBankClient(lang='en') >>> tid = sbc.make_variable_dict(code='Tid', values=years) >>> df = sbc.data(table_id='bef5', variables=[tid], as_df=True)) >>> df.plot(style='o-', figsize=(10, 6))
DataBank API
The official API documentation can be found here
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
denstatbank-0.3.0.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for denstatbank-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d5f450a71f13a3cc6bd34cc7d5b3d233f6f27e4841dbbc7135c066b26f6ef68 |
|
MD5 | 18087b6893af06386e519f760b81f514 |
|
BLAKE2-256 | 90c979e1c87e406e4deb06f1ee3dc28bb05fa5a628c515636ff9337ddfde4b07 |