-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
to_dense does not preserve dtype in SparseArray #10648
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
INSTALLED VERSIONScommit: None pandas: 0.16.2 |
prob a bug, not really well tested and not really a lot of dev support in sparse |
to_dense
does not preserve dtype in SparseArray
I may be speaking too soon, but after skimming the code for this, it looks pretty simple to fix. I'll work on a PR! |
Also fixes values and get_values. closes pandas-dev#10648
This isn't a huge deal, but it seems a little odd:
I would have expected
d
to retain the dtype ofbool
. I can cast down, but I am still wasting 7 bytes per element in the process.The text was updated successfully, but these errors were encountered: