-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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: DataFrame.join on tz aware index and column #26362
Conversation
Codecov Report
@@ Coverage Diff @@
## master #26362 +/- ##
==========================================
- Coverage 91.68% 91.67% -0.01%
==========================================
Files 174 174
Lines 50700 50705 +5
==========================================
Hits 46486 46486
- Misses 4214 4219 +5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26362 +/- ##
==========================================
- Coverage 91.68% 91.67% -0.01%
==========================================
Files 174 174
Lines 50703 50703
==========================================
- Hits 46488 46484 -4
- Misses 4215 4219 +4
Continue to review full report at Codecov.
|
pandas/core/reshape/merge.py
Outdated
@@ -1671,11 +1671,21 @@ def _right_outer_join(x, y, max_groups): | |||
} | |||
|
|||
|
|||
def _convert_array_or_index(arg): | |||
"""Converts DatetimeArray or DatetimeIndex to numpy array in UTC""" |
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 is so opaque
use getattr(arg, ‘_values’, arg)._data
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.
How about extract_array(arg)._data
?
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.
Thanks for the simplification. Went with the getattr
solution.
thanks @mroeschke |
git diff upstream/master -u -- "*.py" | flake8 --diff