Skip to content

BUG: merge_asof with tz_aware left index and right column #29940

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 3 commits into from
Dec 1, 2019

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke added Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode Timezones Timezone data dtype labels Nov 30, 2019
@mroeschke mroeschke added this to the 1.0 milestone Nov 30, 2019
index = pd.date_range("2019-10-01", freq="30min", periods=5, tz="UTC")
left = pd.DataFrame([0.9, 0.8, 0.7, 0.6], columns=["xyz"], index=index[1:])
right = pd.DataFrame({"from_date": index, "abc": [2.46] * 4 + [2.19]})
result = pd.merge_asof(
Copy link
Contributor

Choose a reason for hiding this comment

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

can u test the reverse case as well right_index=True with a left column

@mroeschke
Copy link
Member Author

mroeschke commented Dec 1, 2019

Tested the reverse case and green.

@jreback jreback merged commit c4fa6a5 into pandas-dev:master Dec 1, 2019
@jreback
Copy link
Contributor

jreback commented Dec 1, 2019

thanks @mroeschke

@mroeschke mroeschke deleted the mere_asof_tz branch December 1, 2019 21:41
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pd.merge_asof not working when merging TZ-aware index+series
2 participants