-
-
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
BUG/ENH: dtype change on enlargement #6485
Comments
Is there a way to just assert the type on an enlargement? I'm trying to avoid this...
|
You can avoid this by not assigning with enlargement. |
Adding to a non-empty dataframe no longer enlarges (Jeff's example) but the empty case still does. |
The first example could use a regression test since it works on master.
|
Noted #30444 (comment): The first example should maintain the |
http://stackoverflow.com/questions/22044766/adding-row-to-pandas-dataframe-changes-dtype/22045011#22045011
A bit non-trival (maybe coerce back after) if possible?
maybe just change this to an actual append?
The text was updated successfully, but these errors were encountered: