Conversation

jbrockmendel
  • closes #xxxx (Replace xxxx with the 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.

@mroeschkemroeschke added ReshapingConcat, Merge/Join, Stack/Unstack, ExplodeError ReportingIncorrect or improved errors from pandaslabels Jun 27, 2023
@mroeschkemroeschke added this to the 2.1 milestone Jun 27, 2023
@mroeschkemroeschke merged commit 9824c57 into pandas-dev:main Jun 27, 2023
@mroeschke

Thanks @jbrockmendel

@jbrockmendeljbrockmendel 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

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 . Already have an account? Sign in to comment
Error ReportingIncorrect or improved errors from pandasReshapingConcat, Merge/Join, Stack/Unstack, Explode
None yet

Successfully merging this pull request may close these issues.