Skip to content
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 DataFrame.merge(Series, how="left"/"right") on column and index not resulting in a RangeIndex #17739

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

mroeschke
Copy link
Contributor

Description

Left or right merging on a DataFrame column with a Series index (or vice versa) would not result in a cudf.RangeIndex in the result like pandas.

IMO not the most ideal fix, but I think this is the most best location for the fix given the flow of this merge code.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@mroeschke mroeschke added bug Something isn't working Python Affects Python cuDF API. non-breaking Non-breaking change labels Jan 15, 2025
@mroeschke mroeschke self-assigned this Jan 15, 2025
@mroeschke mroeschke requested a review from a team as a code owner January 15, 2025 01:40
@mroeschke
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 89e8703 into rapidsai:branch-25.02 Jan 15, 2025
106 checks passed
@mroeschke mroeschke deleted the bug/merge/result_on_index branch January 15, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants