evtpooling contains the framework needed to improve tail risk forecasts
Project description
evtpooling contains the framework needed to improve tail risk forecasts through robust data cleaning, transformation, and loss return calculations. It provides flexible ETL utilities for handling time series stock data, validating completeness, transforming data, and calculating daily and weekly loss returns.
Features
Full ETL pipeline for financial time series data
Data validation with dtype checking
Missing data imputation by group means
Categorical cleaning and fuzzy matching for string variables
Daily percentage loss return calculations
Weekly loss return calculations with anchor logic
Flexible pivoting to generate wide-format datasets for downstream modeling
Clean architecture with separate transform and test modules
Installation
You can install the released version from PyPI using:
pip install evtpooling
Or install directly from the source (development version):
git clone https://github.com/JTKimQF/evtpooling.git
cd evtpooling
pip install -e .
Usage Example
Example ETL usage:
from evtpooling import (
extract_file,
transform_data,
load_file,
etl_pipeline
)
# filepath = 'path/to/your/data.csv'
clean_df = etl_pipeline(filepath)
Documentation
Full documentation and function reference is available inside the code base (src/evtpooling/etl/transform.py).
License
MIT License
Copyright (c) 2025 J.T. Kim
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file evtpooling-0.1.4.tar.gz.
File metadata
- Download URL: evtpooling-0.1.4.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
125587a5eb0391df7993a1bf55b9b17ea16f3b4a78e0cf0b39416d28ac8a34d8
|
|
| MD5 |
18abfac7279dab17f6ba2b30d036741a
|
|
| BLAKE2b-256 |
ac4bb867dd4dbb726de1e66e107cdc25ebea914a5a85bcc68f038094739023af
|
File details
Details for the file evtpooling-0.1.4-py3-none-any.whl.
File metadata
- Download URL: evtpooling-0.1.4-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f05176d7c959e007b90ab8a7f1bf3721c6e56532480962443beb89713f372b8
|
|
| MD5 |
6c4600ecb5524f3bf17d27cbcd26844b
|
|
| BLAKE2b-256 |
6c665ff42c5f8bd0b2a89629dc3b1097318c57fb031cddb6e83edd2c8e7f43ee
|