-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Incorrect dtype for concat with empty float and datetime columns #32934
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
Comments
@jorisvandenbossche is this fixed by one of your recent or upcoming PRs? |
This is not fixed on master. While certainly a bug, I think it is not directly related to the recent "skipping empties or not" discussion. It seems that this empty float array already gets casted to datetime64 in JoinUnit.get_reindexed_values, so before those values are passed as I opened a general issue at #39122, where I mentioned this case as example bug for DataFrame. |
These almost looked fixed. Could add a few tests for the cases that work and xfail the one that doesnt
|
Hello guys! Can I take this one ? |
take |
Take. PR already submitted as above. |
Code Sample, a copy-pastable example if possible
Problem description
The return dtype of concatentating a float64 and datetime64[ns] should be object dtype. That's typically the case when both are non-empty
But when either is empty, we get incorrect results
All of those should be object dtype.
The text was updated successfully, but these errors were encountered: