Skip to content

BUG: merge_asof with multiple by columns with tz #27243

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

Merged
merged 1 commit into from
Jul 5, 2019

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke added Reshaping Concat, Merge/Join, Stack/Unstack, Explode Timezones Timezone data dtype labels Jul 5, 2019
@jreback jreback added this to the 0.25.0 milestone Jul 5, 2019
@jreback jreback merged commit 55f0666 into pandas-dev:master Jul 5, 2019
@jreback
Copy link
Contributor

jreback commented Jul 5, 2019

thanks @mroeschke

@mroeschke mroeschke deleted the merge_asof_tz branch July 5, 2019 17:24
@@ -1686,6 +1686,9 @@ def _get_join_indexers(self):

def flip(xs):
""" unlike np.transpose, this returns an array of tuples """
xs = [
x if not is_extension_array_dtype(x) else x._ndarray_values for x in xs
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mroeschke can you comment on why _ndarray_values was chosen here? does it matter that its really lossy for e.g. PeriodIndex?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't recall. I think _values or some equivalent would be okay here

expected.index = result.index
# time column appears after left's columns
# time column appears after left"s columns
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

find/replace mixup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reshaping Concat, Merge/Join, Stack/Unstack, Explode Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

merge_asof with one tz-aware datetime "by" parameter and another parameter raises
3 participants