-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Fix Pandas 0.24 DateOffset bug pt. 2 #7981
Conversation
The patch works for my use case (time grain=day, frequency 1week) I tried an alternative configuration (freq = 4weeks), but the chart is still the same as for 1week. I also tried "frequency = day", but I get an error (but maybe I'm miss-using the chart): Tick offset with
|
Thanks for testing @AndLLA ! Let's get that last error sorted, I think we're pretty close. |
Can you do another round of testing @AndLLA ? Seems to work for me. |
FYI the Tick offsets (Day, Hour, Minute, ...) had normalize disallowed because they caused unexpected arithmetic behavior. More generally, the immutability was put in place because it led to major performance improvements when working with PeriodIndex/Array. |
It works also for me :) |
Codecov Report
@@ Coverage Diff @@
## master #7981 +/- ##
==========================================
- Coverage 65.58% 65.57% -0.02%
==========================================
Files 469 469
Lines 22407 22409 +2
Branches 2432 2432
==========================================
- Hits 14695 14694 -1
- Misses 7591 7594 +3
Partials 121 121
Continue to review full report at Codecov.
|
LGTM, but we should address the underlying problem at some point. |
CATEGORY
Choose one
SUMMARY
This should fix the DateOffset bug that was introduced when moving from Pandas
0.23
to0.24
. Credits for this go to @jbrockmendel, see pandas-dev/pandas#27728TEST PLAN
Tested locally
ADDITIONAL INFORMATION
REVIEWERS
@betodealmeida @AndLLA