-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change: typings added, first test added
- Loading branch information
1 parent
e596544
commit 537acb7
Showing
22 changed files
with
3,319 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) [2024] [Jakob Gabriel] | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,69 @@ | ||
# timeseries-shaper pypi | ||
# 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: | ||
|
||
```bash | ||
pip install timeseries-shaper | ||
``` | ||
|
||
## Useage | ||
|
||
Here is a quick example to get you started: | ||
|
||
```python | ||
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` |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.