Apply groupwise lowess smoothing to a dataframe
Project description
Lowess Grouped
Apply groupwise lowess smoothing to a dataframe.
Usage
Install the package:
pip install lowess-grouped
Then simply import the package, and call the function lowess_grouped
with your dataframe df
:
from lowess_grouped.lowess_grouped import lowess_grouped
df_smoothed = lowess_grouped(df,
x_name="year",
y_name="temperature_anomaly",
group_name="region_name",
frac=0.05)
For a more detailed example take a look at the notebook temperature-example.ipynb.
More
This project builds upon the lowess function from statsmodels.
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.2.tar.gz
(304.2 kB
view hashes)
Built Distribution
Close
Hashes for lowess_grouped-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fcafe2169f20dd8ea34efc0c772d65fbaeb585b42b332ece7fa7733f7130f06 |
|
MD5 | 0feeb6055b6394f47eea17d53742e9b4 |
|
BLAKE2b-256 | b0af2432d0df2f3b4ca2e2592869e196f8e7c715ee7280a2327d59455ab3317a |