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
- 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.
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
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 Distributions
Built Distribution
File details
Details for the file timeseries_shaper-0.0.0.3-py3-none-any.whl
.
File metadata
- Download URL: timeseries_shaper-0.0.0.3-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a24d2fe1cff1a68708a0ddec8bcfeb9b9ef12ecfbd69542e5be2e5952d47c6 |
|
MD5 | 0066a422863bc520bcf3dea3dfb116e3 |
|
BLAKE2b-256 | 68b2f53393d4f387e3d4256db54b22f5623bb1007213d0019ec819c01e43724b |