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')
>>> years = [str(y) for y in list(range(2002, 2020))]
>>> 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))
denstatbank
utilizes the power of pandas
, a fast and flexible library
eminently suited for data handling and analysis.
For documention, please visit.
Todo
Examples demonstrating statistical analysis of data
Links
The official API documentation can be found here
Project details
Release history Release notifications | RSS feed
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
Hashes for denstatbank-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47fe982b0de946e26a88bec0a2c104881c90fe6733aeac579de0474476b644a3 |
|
MD5 | 0fde04908d6d6f6423eb517c135486fa |
|
BLAKE2b-256 | 9dac47cdf6dfa67c3211b4fc0bf0ad1452e69ad71d2abbdcbd7c4b72a8795738 |