Library for handling CPI data
Project description
CPI-Lib
Python Library to handle CPI data.
Installation
pip install cpilib
Usage
from cpilib import HICP
# Will fetch new data if the data from cache (if any)
# is older than 1 week (time_limit in days)
hicp = HICP.from_cache(time_limit=7)
# COICOP code
node = 'CP01'
# Country code
country = 'DE'
# DataFrame of the prices of the children of (node, country)
price_children = hicp.prices.children(node, country)
# DataFrame of the weights of the children of (node, country)
weight_children = hicp.weights.children(node, country)
# Series of the weights of (node, country)
total_weight = hicp.weights.node(node, country) # Yearly (int)
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
cpilib-0.2.6.tar.gz
(153.4 kB
view details)
Built Distribution
cpilib-0.2.6-py3-none-any.whl
(151.7 kB
view details)
File details
Details for the file cpilib-0.2.6.tar.gz
.
File metadata
- Download URL: cpilib-0.2.6.tar.gz
- Upload date:
- Size: 153.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.9.7 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e80b5089a94475c63d6506ffb07e35439edd29aef8917c11bb55c8634e96408d |
|
MD5 | 84149890b77e10dc18ba6e48a1dcc9bb |
|
BLAKE2b-256 | 6942b21283daf980e32457a1c7c15f1f8eced069d08b6ba3dab0ebec6c163846 |
File details
Details for the file cpilib-0.2.6-py3-none-any.whl
.
File metadata
- Download URL: cpilib-0.2.6-py3-none-any.whl
- Upload date:
- Size: 151.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.9.7 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 603c3cce487cf883f0e7487dbf3f35011c018052b728b50c6ae2621eeed4cf06 |
|
MD5 | 19a9c4b78242eae89e6d295ea67bc2fa |
|
BLAKE2b-256 | 8b34bcc9b2a4808ab0227846ff214bc6a79b938612f4c77724b4ceb770dc7dec |