Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add line plot on a per year basis #2

Open
devinberg opened this issue Jan 30, 2020 · 2 comments
Open

Add line plot on a per year basis #2

devinberg opened this issue Jan 30, 2020 · 2 comments

Comments

@devinberg
Copy link
Member

I would like to add a line plot which shows the annual progress across each year, January through December, with each year on the same plot. The count column in the dataframe would need to reset for each year if that is used for the plot like it is in the current plots.

Note that the dataframe's index is currently set to the date, so the below mask works to filter by year.

mask = data.index.year == int(2019)`
@devinberg
Copy link
Member Author

The plot would have 5 lines on it. A cumulative submission count from January to December which one line for each year (2016, 2017, 2018, 2019, and 2020). So kind of like the first plot in the existing Jupyter notebook. Except that instead of going from 2016 to today, each line is only for one year. Starting from zero each year on January 1st. 2016 should start at 0 and end at ~40. 2017 should start at 0 and end at ~100. For example.

@devinberg
Copy link
Member Author

This kind of plot is basically what I am looking for.

annualized plot

/via https://mastodon.social/@philipncohen/109809766505297989

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant