Skip to main content

timeseries-shaper filters, transforms and abstracts your timeseries dataframe

Project description

timeseries-shaper

Timeseries-Shaper is a Python library for efficiently filtering and preprocessing time series data using pandas. It provides a set of tools to handle various data transformations, making data preparation tasks easier and more intuitive.

Features

Load

  • Load Parquet: Load parquet files for further processing

Transform

Filter

  • Filter Missing Values: Quickly filter out or fill missing values in your time series data.
  • Boolean Filters: Apply boolean logic to filter data based on specific conditions.
  • Integer and Double Filters: Perform numeric operations and filters specific to integer and double data types.
  • String Filters: Manipulate and filter data based on string operations.

Calculation

Descriptive Statistics

  • Boolean Stats:
  • Numeric Stats:
  • String Stats:
  • Timeseries Stats:

Installation

Install timeseries-shaper using pip:

pip install timeseries-shaper

Useage

Here is a quick example to get you started:

import pandas as pd
from timeseries_shaper.filters import IntegerFilter, StringFilter

# Sample DataFrame
data = {
    'value_integer': [1, 2, None, 4, 5],
    'value_string': ['apple', 'banana', None, 'cherry', 'date']
}
df = pd.DataFrame(data)

# Initialize the filter object
integer_filter = IntegerFilter(df)
string_filter = StringFilter(df)

# Apply filters
filtered_integers = integer_filter.filter_value_integer_not_match(2)
filtered_strings = string_filter.filter_value_string_not_match('banana')

print(filtered_integers)
print(filtered_strings)

Documentation

For full documentation, visit GitHub Pages or check out the docstrings in the code.

Contributing

Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.

Please ensure to update tests as appropriate.

License

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

Development

  • Generate new pdocs: .\generate_docs.sh

  • Install package locally: pip install -e .

  • Run tests locally with pytest: pytest /tests

  • Build package for upload: python setup.py sdist bdist_wheel

  • Upload build package to pypi: twine upload dist/* --verbose --skip-existing

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

timeseries-shaper-0.0.0.7.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

timeseries_shaper-0.0.0.7-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

Details for the file timeseries-shaper-0.0.0.7.tar.gz.

File metadata

  • Download URL: timeseries-shaper-0.0.0.7.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for timeseries-shaper-0.0.0.7.tar.gz
Algorithm Hash digest
SHA256 9a07e8a24f6b22d2ebc92c3014188a0c39837a675bbfa5d58fa2d50486b5fd3b
MD5 7f899b067a779284eab0a0fa3bac66e7
BLAKE2b-256 1b2e687ef907be24037fd833e4f89591f44e7480e913f5d1feb641ea32392ec1

See more details on using hashes here.

File details

Details for the file timeseries_shaper-0.0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for timeseries_shaper-0.0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 19887c0b870018a7cb01488ee1b5e1d99c82ae926b7e2bab707c10cf5e26ef9d
MD5 6385fbba47b2269d340bb9e51237c431
BLAKE2b-256 fe4882d9cc0c8f0d4f7df17ad5382e5f5e2e89ace61ddc3c0bd6c2513133bf05

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