Skip to main content

Wavy is a library to facilitate time series analysis

Project description

≈ Wavy: Time-Series Manipulation ≈

GitHub Contributors GitHub Last Commit Github License

Wavy is a time-series manipulation library designed to simplify the pre-processing steps and reliably avoid the problem of data leakage. Its main structure is built on top of Pandas. Explore the docs 📖 Logo

📦 Installation

You can install Wavy from pip:

pip install wavyts

🚀 Quickstart

import numpy as np
import pandas as pd
import wavy
from wavy import models

# Start with any time-series dataframe:
df = pd.DataFrame({'price': np.random.randn(1000)}, index=range(1000))

# Create panels. Each panel is a frame collection.
x, y = wavy.create_panels(df, lookback=3, horizon=1)

# x and y contain the past and corresponding future data.
# lookback and horizon are the number of timesteps.
print("Lookback:", x.num_timesteps)
print("Horizon:", y.num_timesteps)

# Set train-val-test split. Defaults to 0.7, 0.2 and 0.1, respectively.
wavy.set_training_split(x, y)

# Instantiate a model:
model = models.LinearRegression(x, y)
model.score()

Features

💡 Wavy is:

  • A resourceful, high-level package with tools for time-series processing, visualization, and modeling.
  • A facilitator for time-series windowing that helps reduce boilerplate code and avoid shape confusion.

❗ Wavy is not:

  • An efficient, performance-first framework (yet!).
  • Primarily focused on models. Processed data can be easily converted to numpy arrays for further exploration.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make to wavy are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! ⭐

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

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

wavyts-0.1.10.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

wavyts-0.1.10-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file wavyts-0.1.10.tar.gz.

File metadata

  • Download URL: wavyts-0.1.10.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/22.1.0

File hashes

Hashes for wavyts-0.1.10.tar.gz
Algorithm Hash digest
SHA256 24251566fc5528c73a2c37d642794ae3795d5090932f5a0589919d4426307280
MD5 770c048113e879cf21ab5b1f1a5c6f48
BLAKE2b-256 a6beaa6cd6be8157973813ff76a9c74a1ea73ea330432b86159b7b865215d51e

See more details on using hashes here.

File details

Details for the file wavyts-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: wavyts-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/22.1.0

File hashes

Hashes for wavyts-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 305cc18bb7d86409c8b53d71a7029770358b1dc0aaf365c98c0031a876b58ceb
MD5 a664c2ea15a5c92cf0241eba45c2c50f
BLAKE2b-256 18239b6b6c21e90c050f567f081e364e07526df352949fa74b823644f426cfc3

See more details on using hashes here.

Supported by

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