Python brazilian currency deflator
A simple python package to deflate historical yearly or monthly values using IPCA (Consumers Broad Price Index).
Throught IPEA Data's API the function gather historical IPCA yearly (PRECOS_IPCAG series) and monthly (PRECOS12_IPCAG12 series) indexes to deflate currency values.
Installation:
pandasandrequestspackages are required in your environment (python -m pip install pandas requests).- Install the package (
pip install deflatepybr)
Usage:
The function takes 5 arguments:
data_frame: APandas.DataFramewith the data;value_column(str): A column containing the values to deflate;date_column(str): Column name fromdata_framewith the date range;deflate_year(int): Year that you wanna deflate the series to;deflate_month(int), optional: Month to deflate if you need monthly index values.
If only deflate_year is passed, the functions assumes that Yearly values are desired.
Examples can be found in the example.ipynb jupyter notebook file available on the project's Github page.
Metadata
Release files for deflatepybr 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| deflatepybr-0.0.8.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deflatepybr-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / deflatepybr-0.0.8.tar.gz
| Download URL | deflatepybr-0.0.8.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3d8ac17aa5c9ae7674e20c00008e5308643021cde5194d2d28e7a312b46bec9
|
|
BLAKE2b-256 checksum How to use checksums |
d36b237d3dfea0dd9ae9e522ef6fcc7bde08600bae4f7778f05dd23d2ff28ab1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / deflatepybr-0.0.8-py3-none-any.whl
| Download URL | deflatepybr-0.0.8-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50af3038e021dfa53f9b16bd5ab6fc21e7d745f696c09b0db483de63d01e5171
|
|
BLAKE2b-256 checksum How to use checksums |
c58bc79cba2b9c7404d6017c97c1132e7d59f4ad8b82fce6f26482e5e71843b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Security for deflatepybr 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.