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

BUG: merge with mismatched index dtypes failing to raise #53870

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@mroeschke mroeschke added Reshaping Concat, Merge/Join, Stack/Unstack, Explode Error Reporting Incorrect or improved errors from pandas labels Jun 27, 2023
@mroeschke mroeschke added this to the 2.1 milestone Jun 27, 2023
@mroeschke mroeschke merged commit 9824c57 into pandas-dev:main Jun 27, 2023
37 of 38 checks passed
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the bug-merge-dtype-matching branch June 27, 2023 01:45
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
…53870)

* BUG: merge with mismatched index dtypes failing to raise

* gh ref
@eliberma
Copy link

just a question: I believe this change alters edge case behavior of running pd.merge_asof(df, pd.DataFrame(), left_index=True, right_index=True) for a df with a datetime index.

pandas version 2.0.3 returns df for the above function call (instead of raising).

wondering whether this edge behavior ought to be preserved or if there is a better work around to potentially merging a non-empty with and empty df.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants