Apply groupwise lowess smoothing to a dataframe
Project description
lowess-grouped
Apply groupwise lowess smoothing to a dataframe.
This project builds upon the lowess function from statsmodels.
Usage
Simply import the package, and pass your dataframe df
to the function lowess_grouped
:
from lowess_grouped.lowess_grouped import lowess_grouped
df_smoothed = lowess_grouped(df, "x_col_name", "y_col_name", "group_name", frac=0.05)
For a more detailed example see the temperature-example.ipynb.
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
lowess_grouped-0.0.1.tar.gz
(181.4 kB
view hashes)
Built Distribution
Close
Hashes for lowess_grouped-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e231ec1b2c4b1063b8c09ac5847b10d925061c565f4a58fa3543539284a7712 |
|
MD5 | 10e0265a58880c6274b0d7e7e9c227f7 |
|
BLAKE2b-256 | 927e9a8e29f804a7705df4eec79f87af976284ef3e9f355a603c903fa8a8e0a2 |