-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Enable plotting with PeriodIndex with arbitrary frequencies, resolves #14763 #26241
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
BUG: Enable plotting with PeriodIndex with arbitrary frequencies, resolves #14763 #26241
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are hugely critical - if you could add will take a look
Yes, I absolutely agree. Since this is my first PR, I am not sure how to write good tests. I altered |
Codecov Report
@@ Coverage Diff @@
## master #26241 +/- ##
===========================================
- Coverage 91.97% 40.69% -51.29%
===========================================
Files 175 175
Lines 52368 52371 +3
===========================================
- Hits 48164 21310 -26854
- Misses 4204 31061 +26857
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26241 +/- ##
==========================================
+ Coverage 91.75% 91.76% +0.01%
==========================================
Files 174 174
Lines 50761 50632 -129
==========================================
- Hits 46575 46462 -113
+ Misses 4186 4170 -16
Continue to review full report at Codecov.
|
0570e1e
to
dbd95fc
Compare
@WillAyd I added some tests. I assumed that it is ok to alter existing tests.
But this doesn't seem like a good solution. Any advice? |
Rather than modifying existing tests I think you'd be better off creating a new test specifically for this feature. Also looks like these changes caused a failure in the CI as is so be sure to give that a look |
Done. All checks passing now. Any other recommendations/changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also needs a release note in 0.25.0.rst
Ok, both done. Thanks alot for your advice! |
Thanks @JoElfner! |
You are welcome and thanks for your help and advice! |
git diff upstream/master -u -- "*.py" | flake8 --diff
Enables plotting of data with PeriodIndex with frequencies which are multiples of the
data.index.freq.rule_code
.Hopefully I'll find some time to include tests within the next 3 weeks. Since this is my first pull requests, I may need some additional time to write tests.