-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Hack fix for BUG - GH24784 #28003
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
Hack fix for BUG - GH24784 #28003
Conversation
When using any of the Locators the date calculation (x-axis labels) are off by one day in case of continuous dates.
When using any of the Locators the date calculation (x-axis labels) are off by one day when continuous dates are provided.
When using any of the Locators the date calculation (x-axis labels) are off by one day when continuous dates are provided.
Hello @itssujeeth! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2019-08-18 18:52:40 UTC |
@@ -270,6 +270,13 @@ def _get_index_freq(data): | |||
weekdays = np.unique(data.index.dayofweek) | |||
if (5 in weekdays) or (6 in weekdays): | |||
freq = None | |||
# This is a hack introduced to avoid tick resolution adjustment issue - |
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 fix feels too specific. Guessing the fix might be in _use_dynamic_x
where the locators are calculated
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.
yes, the _use_dynamic_x is causing the locators to be off by one day if consecutive dates are provided.
can you merge master and update to comments |
closing this as stale, though its a nice change, needs a rebase and comments addressed. |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff