has2k1 / has2k1/plotnine

Autocorrelation function within plotnine

Open
#563 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
4.8k
Forks
254
Avg merge
10h 35m
Merged PRs (30d)
9

Description

Hi has2k1. I really love using plotnine as it makes doing analysis on my data really easy. I truly appreciate your work.

Is there a way to do be able to add an autocorrelation function into the package if isn't already? I don't really code in Python but if it is relatively simple to do, I'm willing to open a PR. I just would need a little guidance on the proper format of how to add a new layer/facet (whatever the appropriate term is) for ggplot.

As for implementation, I am aware that the statsmodel package as an autocorrelation function. The plots can be generated by statsmodels.graphics import tsaplots.plot_acf(x, lags = N, alpha= value) so perhaps we can use the underlying function call here to generate the intermediate data before it is plotted via plotnine.

Open to ideas.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing plotnine's extension points for layers or facets and the mentioned statsmodels.graphics.tsaplots.plot_acf entry point. Clarify the desired API, plotting behavior, and integration scope before implementation; done should mean an agreed autocorrelation feature is supported and documented by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.