-
-
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
Concat coerces ints to floats if empty DataFrame is present #8902
Comments
cc @immerrr This is actually somewhat of a grey area. If you had passed a
IOW, I could see ignoring these in the pre-computation. |
I agree, it should coerce technically, but not practically. |
I have a lot on my plate right now, but if it waits till I'm done with that, I'll fix this. |
In recent Pandas version (v1.0.3), concat coerces ints to
|
I think the above behavior was an intentional behavior change a while back (that an empty DataFrame has an Closing as the new expected behavior, but happy to reopen if I am misunderstanding |
It seems that when using
concat
coercesSeries
of typeint
to typefloat
if one of theDataFrame
s being concatted is empty:While if both columns have ints, no coercion happens:
The text was updated successfully, but these errors were encountered: