Skip to main content

A package for transforming and manipulating time series data with universal interfaces

Project description

Universal Timeseries Transformer

A Python package that provides a universal interface for transforming and manipulating time series data. This package offers flexible and efficient tools for handling various types of time series data transformations.

Version Updates

v0.2.0 (2025-06-03)

  • Major version update as the module reaches maturity
  • Added date_ref property to PricesMatrix class for improved date reference handling
  • All features from previous versions are now stable and production-ready

v0.1.10 (2025-06-03)

  • Fixed bug in PricesMatrix class to use correct string_date_controller function
  • Updated to use get_all_data_historical_dates function from string_date_controller 0.2.0

v0.1.9 (2025-06-02)

  • Fixed bug in PricesMatrix class related to historical dates calculation
  • Updated to use correct string_date_controller functions

v0.1.8 (2025-06-02)

  • Added PricesMatrix class extending TimeseriesMatrix for price data handling
  • Enhanced matrix representation capabilities with historical dates support

v0.1.7 (2025-06-02)

  • Improved TimeseriesMatrix class with optimized property handling
  • Updated string_date_controller dependency to version 0.2.0 or higher
  • Removed unused date_calculus module

v0.1.6 (2025-06-01)

  • Added timeseries_slicer module with date-based and index-based slicing functions
  • Added timeseries_extender module with enhanced date extension functionality
  • Improved .gitignore to exclude Jupyter notebook files

v0.1.5 (2025-05-30)

  • Added TimeseriesMatrix class for matrix representation of time series data
  • Enhanced data access with row, column, and component selection methods
  • Added format conversion methods (datetime, unixtime, string)

v0.1.4 (2025-05-28)

  • Added verbose option to control log output
  • Enhanced timeseries extension functionality
  • Improved code readability and documentation

v0.1.3 (2025-05-19)

  • Added new timeseries_application module with financial calculations
  • Added functions for returns and cumulative returns calculation

v0.1.2 (2025-05-19)

  • Improved stability and performance optimization
  • Enhanced type checking functionality
  • Documentation improvements

Features

  • Index Transformer
    • Flexible time index manipulation
    • Date range operations
    • Frequency conversion
  • DataFrame Transformer
    • Universal interface for time series operations
    • Data alignment and merging
    • Efficient data transformation
  • Timeseries Basis
    • Core functionality for time series manipulation
    • Common time series operations

Installation

You can install the package using pip:

pip install universal-timeseries-transformer

Requirements

  • Python >= 3.8
  • Dependencies:
    • pandas
    • numpy

Usage Examples

1. Basic Time Series Transformation

from universal_timeseries_transformer import IndexTransformer, DataFrameTransformer
import pandas as pd

# Create sample time series data
df = pd.DataFrame({'value': [1, 2, 3, 4]},
                  index=pd.date_range('2025-01-01', periods=4))

# Transform time series index
index_transformer = IndexTransformer(df)
weekly_data = index_transformer.to_weekly()

# Apply data transformations
df_transformer = DataFrameTransformer(weekly_data)
result = df_transformer.rolling_mean(window=2)

2. Advanced Time Series Operations

from universal_timeseries_transformer import TimeseriesBasis

# Initialize time series basis
ts_basis = TimeseriesBasis(df)

# Perform complex transformations
transformed_data = ts_basis.transform()

)

Find funds with borrowings

funds_with_borrowings = search_funds_having_borrowings(date_ref='2025-02-21')

Get borrowing details

fund_code = '100075' borrowing_details = get_borriwings_by_fund(fund_code=fund_code, date_ref='2025-02-21')


### 3. Check Repo Agreements

```python
from financial_dataset_preprocessor import (
    search_funds_having_repos,
    get_repos_by_fund
)

# Find funds with repos
funds_with_repos = search_funds_having_repos(date_ref='2025-02-21')

# Get repo details for a specific fund
fund_code = '100075'
repo_details = get_repos_by_fund(fund_code=fund_code, date_ref='2025-02-21')

Development

To set up the development environment:

  1. Clone the repository
  2. Create a virtual environment
  3. Install dependencies:
pip install -r requirements.txt

License

This project is licensed under a proprietary license. All rights reserved.

Terms of Use

  • Source code viewing and forking is allowed
  • Commercial use is prohibited without explicit permission
  • Redistribution or modification of the code is prohibited
  • Academic and research use is allowed with proper attribution

Author

June Young Park
AI Management Development Team Lead & Quant Strategist at LIFE Asset Management

LIFE Asset Management is a hedge fund management firm that integrates value investing and engagement strategies with quantitative approaches and financial technology, headquartered in Seoul, South Korea.

Contact

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

universal_timeseries_transformer-0.2.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file universal_timeseries_transformer-0.2.0.tar.gz.

File metadata

File hashes

Hashes for universal_timeseries_transformer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 031572e5d0f597367a24630caf2193b43d78a15b7b60f95a69419611673a86a9
MD5 78d5dcc8113d1d595acf46e404f52fed
BLAKE2b-256 a136d7f5d75cf5fc16152e50a38557e4c06075de3fb6cf79a9c6f4e822b0f104

See more details on using hashes here.

File details

Details for the file universal_timeseries_transformer-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for universal_timeseries_transformer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 238ffd344cd58f760e19bdd5ffa84494c8b794b2a85a829462e37329eb813489
MD5 b255ba7e3dc257ee1dbbea10b388d2de
BLAKE2b-256 aa76eaa03be02984a091df266d740c613c93d7465244e43f726e82e16f75b1fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page