-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
merge coerces to left dtype even with how='right' #31951
Labels
Bug
Dtype Conversions
Unexpected or buggy dtype conversions
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Comments
Dr-Irv
added
Algos
Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
Dtype Conversions
Unexpected or buggy dtype conversions
labels
Sep 27, 2020
5 tasks
mroeschke
added
Bug
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
and removed
Algos
Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
labels
Jul 28, 2021
Looks to work on main. Could use a test |
mroeschke
added
good first issue
Needs Tests
Unit test(s) needed to prevent regressions
and removed
Bug
labels
Apr 28, 2023
take |
Hi @mroeschke |
|
MarcoGorelli
added
Bug
and removed
good first issue
Needs Tests
Unit test(s) needed to prevent regressions
labels
May 15, 2023
yup, thanks for checking |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
Dtype Conversions
Unexpected or buggy dtype conversions
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Code Sample, a copy-pastable example if possible
Problem description
I don't know if this is an issue, it's just something I noticed while working on #31278 . The right value
1.0
gets coerced to the dtype of the left dataframe when usinghow='left'
, and I would have expected the left value1
to get coerced to the dtype of the right dataframe when usinghow='right'
Expected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
{k:<17}: {stat}
The text was updated successfully, but these errors were encountered: