Skip to main content

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)

Uploaded Source

Built Distribution

lowess_grouped-0.0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

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