Skip to main content

Time series downsampling in rust

Project description

tsdownsample

PyPI Latest Release support-version Downloads

📈 Time series downsampling algorithms for visualization

Features ✨

  • Fast: written in rust with pyo3 bindings
    • leverages optimized argminmax - which is SIMD accelerated with runtime feature detection
    • scales linearly with the number of data points
    • scales multi-threaded with rayon (rust)
  • Efficient: memory efficient
    • works on views of the data (no copies)
    • no intermediate data structures are created
  • Flexible: works on any type of data
    • supported datatypes are f16, f32, f64, i16, i32, i64, u16, u32, u64
      !! 🚀 f16 argminmax is 200-300x faster than numpy
  • Easy to use: simple API

Install

❗🚨❗ This package is currently under development - no stable release yet ❗🚨❗

pip install tsdownsample

Usage

import tsdownsample as tsds
import pandas as pd; import numpy as np

# Create a time series
y = np.random.randn(10_000_000)
s = pd.Series(y)

# Downsample to 1000 points
s_ds = tsds.minmaxlttb(s, n_out=1000)

👤 Jeroen Van Der Donckt

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

tsdownsample-0.1.0a1.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distributions

tsdownsample-0.1.0a1-cp311-none-win_amd64.whl (396.4 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

tsdownsample-0.1.0a1-cp311-none-win32.whl (333.8 kB view hashes)

Uploaded CPython 3.11 Windows x86

tsdownsample-0.1.0a1-cp311-cp311-musllinux_1_1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

tsdownsample-0.1.0a1-cp311-cp311-musllinux_1_1_aarch64.whl (1.5 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ ARM64

tsdownsample-0.1.0a1-cp311-cp311-manylinux_2_24_s390x.whl (1.5 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.24+ s390x

tsdownsample-0.1.0a1-cp311-cp311-manylinux_2_24_ppc64le.whl (1.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.24+ ppc64le

tsdownsample-0.1.0a1-cp311-cp311-manylinux_2_24_armv7l.whl (1.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.24+ ARMv7l

tsdownsample-0.1.0a1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

tsdownsample-0.1.0a1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

tsdownsample-0.1.0a1-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.12+ i686

tsdownsample-0.1.0a1-cp311-cp311-macosx_10_9_arm64.whl (455.2 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ ARM64

tsdownsample-0.1.0a1-cp311-cp311-macosx_10_7_x86_64.whl (518.8 kB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

tsdownsample-0.1.0a1-cp310-none-win_amd64.whl (396.4 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

tsdownsample-0.1.0a1-cp310-none-win32.whl (333.8 kB view hashes)

Uploaded CPython 3.10 Windows x86

tsdownsample-0.1.0a1-cp310-cp310-musllinux_1_1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

tsdownsample-0.1.0a1-cp310-cp310-musllinux_1_1_aarch64.whl (1.5 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ ARM64

tsdownsample-0.1.0a1-cp310-cp310-manylinux_2_35_x86_64.whl (4.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.35+ x86-64

tsdownsample-0.1.0a1-cp310-cp310-manylinux_2_24_s390x.whl (1.5 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.24+ s390x

tsdownsample-0.1.0a1-cp310-cp310-manylinux_2_24_ppc64le.whl (1.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.24+ ppc64le

tsdownsample-0.1.0a1-cp310-cp310-manylinux_2_24_armv7l.whl (1.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.24+ ARMv7l

tsdownsample-0.1.0a1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

tsdownsample-0.1.0a1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

tsdownsample-0.1.0a1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ i686

tsdownsample-0.1.0a1-cp310-cp310-macosx_10_9_arm64.whl (455.2 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ ARM64

tsdownsample-0.1.0a1-cp310-cp310-macosx_10_7_x86_64.whl (518.8 kB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

tsdownsample-0.1.0a1-cp39-none-win_amd64.whl (396.6 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

tsdownsample-0.1.0a1-cp39-none-win32.whl (334.1 kB view hashes)

Uploaded CPython 3.9 Windows x86

tsdownsample-0.1.0a1-cp39-cp39-musllinux_1_1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

tsdownsample-0.1.0a1-cp39-cp39-musllinux_1_1_aarch64.whl (1.5 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ ARM64

tsdownsample-0.1.0a1-cp39-cp39-manylinux_2_24_s390x.whl (1.5 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.24+ s390x

tsdownsample-0.1.0a1-cp39-cp39-manylinux_2_24_ppc64le.whl (1.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.24+ ppc64le

tsdownsample-0.1.0a1-cp39-cp39-manylinux_2_24_armv7l.whl (1.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.24+ ARMv7l

tsdownsample-0.1.0a1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

tsdownsample-0.1.0a1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

tsdownsample-0.1.0a1-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

tsdownsample-0.1.0a1-cp39-cp39-macosx_10_9_arm64.whl (455.5 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ ARM64

tsdownsample-0.1.0a1-cp39-cp39-macosx_10_7_x86_64.whl (519.1 kB view hashes)

Uploaded CPython 3.9 macOS 10.7+ x86-64

tsdownsample-0.1.0a1-cp38-none-win_amd64.whl (371.0 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

tsdownsample-0.1.0a1-cp38-none-win32.whl (333.9 kB view hashes)

Uploaded CPython 3.8 Windows x86

tsdownsample-0.1.0a1-cp38-cp38-musllinux_1_1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

tsdownsample-0.1.0a1-cp38-cp38-musllinux_1_1_aarch64.whl (1.5 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ ARM64

tsdownsample-0.1.0a1-cp38-cp38-manylinux_2_24_s390x.whl (1.5 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.24+ s390x

tsdownsample-0.1.0a1-cp38-cp38-manylinux_2_24_ppc64le.whl (1.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.24+ ppc64le

tsdownsample-0.1.0a1-cp38-cp38-manylinux_2_24_armv7l.whl (1.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.24+ ARMv7l

tsdownsample-0.1.0a1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

tsdownsample-0.1.0a1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

tsdownsample-0.1.0a1-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

tsdownsample-0.1.0a1-cp38-cp38-macosx_10_9_arm64.whl (455.2 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ ARM64

tsdownsample-0.1.0a1-cp38-cp38-macosx_10_7_x86_64.whl (518.9 kB view hashes)

Uploaded CPython 3.8 macOS 10.7+ x86-64

tsdownsample-0.1.0a1-cp37-none-win_amd64.whl (370.9 kB view hashes)

Uploaded CPython 3.7 Windows x86-64

tsdownsample-0.1.0a1-cp37-none-win32.whl (333.8 kB view hashes)

Uploaded CPython 3.7 Windows x86

tsdownsample-0.1.0a1-cp37-cp37m-musllinux_1_1_x86_64.whl (1.5 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

tsdownsample-0.1.0a1-cp37-cp37m-musllinux_1_1_aarch64.whl (1.5 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ ARM64

tsdownsample-0.1.0a1-cp37-cp37m-manylinux_2_24_s390x.whl (1.5 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.24+ s390x

tsdownsample-0.1.0a1-cp37-cp37m-manylinux_2_24_ppc64le.whl (1.4 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.24+ ppc64le

tsdownsample-0.1.0a1-cp37-cp37m-manylinux_2_24_armv7l.whl (1.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.24+ ARMv7l

tsdownsample-0.1.0a1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

tsdownsample-0.1.0a1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

tsdownsample-0.1.0a1-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.whl (1.4 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686

tsdownsample-0.1.0a1-cp37-cp37m-macosx_10_9_arm64.whl (455.2 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ ARM64

tsdownsample-0.1.0a1-cp37-cp37m-macosx_10_7_x86_64.whl (518.9 kB view hashes)

Uploaded CPython 3.7m macOS 10.7+ x86-64

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