Skip to content

BUG: Fix bug in combine_first with string dtype and only NA #37568

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
Nov 2, 2020

Conversation

phofl
Copy link
Member

@phofl phofl commented Nov 1, 2020

This caused bugs in Index.union() and Index.join() with how=outer too, but they are called from combine_first. Could add test, if this would be preferable. Hope Adding ExtensionArray to the if condition does not crash anything else. Run most categorical tests already locally.

@phofl phofl added the Reshaping Concat, Merge/Join, Stack/Unstack, Explode label Nov 1, 2020
@jreback jreback added the NA - MaskedArrays Related to pd.NA and nullable extension arrays label Nov 2, 2020
@jreback jreback added this to the 1.2 milestone Nov 2, 2020
@jreback jreback merged commit 462b21d into pandas-dev:master Nov 2, 2020
@jreback
Copy link
Contributor

jreback commented Nov 2, 2020

this is fine, thanks. likely we would want some more direct testing of categoricals here (e.g. pass a dtype='string' EA array in (or actually any EA array) and it should hit this path). if you can followon with some additional tests

kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
ukarroum pushed a commit to ukarroum/pandas that referenced this pull request Nov 2, 2020
@phofl phofl deleted the 37519 branch December 13, 2020 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NA - MaskedArrays Related to pd.NA and nullable extension arrays Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: DataFrame.combine_first() works incorrect with with string indexes
2 participants