-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
0.12.0 concat() error #4583
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
try with |
The trouble was caused by using DataFrame.convert_objects(copy=False). Somehow it screws up the DataFrame. Using convert_objects(), i.e. creating a copy, works just fine. So, problem with convert_objects(copy=False), not with concat(). |
yes, don't do that! (that's really an internal flag, in practice no need to use it), maybe I'll take it out |
Please! It's confusing. Any chance of getting inplace= flag in convert_objects()? For big frames, that can save quite a bit of memory. |
that's a bad idea for a lot of reasons |
Haha. Well, I have bool columns that happen to contain NaNs and, as such, become objects. First of all, trying to save them into an hdf table would fail. Second, for my purposes NaN can be treated as False. So, I fill NaNs with False. However, dtype for the column would still remain object unless I do convert_objects() and get my bool column type. |
ok in that case just do convert_objects on the column itself and assign to the frame |
Ok. Thanks! |
I run the following code on a list of DataFrames
and get the following
What's going wrong?
The text was updated successfully, but these errors were encountered: