A data analytics, feature engineering library for time series price data
Project description
QuantFeat
QuantFeat is a Python package for quantitative financial analysis, including EDA, returns, volatility, and data conversion utilities for time series data.
Installation
Install the latest release from PyPI:
pip install quantfeat
Usage
Import the modules you need:
from quantfeat import eda, returns, volatility, convert_data
Data Resampling
Convert raw data to a desired frequency (e.g., hourly):
import pandas as pd
data = pd.read_csv("your_data.csv")
df = convert_data.resample(data, "1H", start="2020-01-01", end="2025-08-01")
Exploratory Data Analysis (EDA)
Profile your dataset and get price/volume/returns stats:
eda.profile(df)
eda.price_stats(df)
eda.returns(df)
eda.volume_stats(df)
Generate plots and heatmaps:
eda.plot_time_series(df)
eda.corr_heatmap(df)
Run a full EDA pipeline (with summary and plots):
eda.perform_quantitative_eda(df)
Returns Calculation
Compute simple/log/lagged/rolling returns:
from quantfeat import returns
returns.simple_returns(df)
returns.log_returns(df)
returns.lagged_returns(df, n=5)
returns.rolling_returns(df, window=20)
Volatility Estimation
Estimate volatility using various models:
from quantfeat import volatility
volatility.realized_volatility(df, window=20)
volatility.parkinson_volatility(df, window=20)
volatility.garman_klass_volatility(df, window=20)
volatility.rogers_satchell_volatility(df, window=20)
volatility.yang_zhang_volatility(df, window=20)
Data Validation
Check and standardize your data:
from quantfeat import validate
validate.validate_and_standardize(df)
Documentation
See function docstrings or source for detailed arguments and options.
License
MIT
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
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 quantfeat-0.1.0.tar.gz.
File metadata
- Download URL: quantfeat-0.1.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39cfae2e236d5d327c5cec5b0bd3f34a952c8c07dbfbb5f9b4967dbb2a9611ba
|
|
| MD5 |
eddba927e7d211c27a0d5efd9ed00e82
|
|
| BLAKE2b-256 |
01b7eb0d2a1e65ef4b8e5401188a238262cf8edf0a0e0524c4cf8cde95070abf
|
File details
Details for the file quantfeat-0.1.0-py3-none-any.whl.
File metadata
- Download URL: quantfeat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0084abce29e56c8bddc208588e1ac69030341502357a0b079f13e58201c8c58d
|
|
| MD5 |
49da734a879deac3cdfd4007f87a96b8
|
|
| BLAKE2b-256 |
ef1712ecd95c376b7a96a9521dbce00e5d539ac0f8bb02f9650be34926a5d514
|