Skip to content

SparseArray with dtype != float64 #3756

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

Closed
mrjbq7 opened this issue Jun 4, 2013 · 3 comments
Closed

SparseArray with dtype != float64 #3756

mrjbq7 opened this issue Jun 4, 2013 · 3 comments
Labels
Dtype Conversions Unexpected or buggy dtype conversions Duplicate Report Duplicate issue or pull request Enhancement Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code Sparse Sparse Data Type
Milestone

Comments

@mrjbq7
Copy link

mrjbq7 commented Jun 4, 2013

It would be nice to support sparse arrays with dtype that is not just float64. Specifically, I have some data that is int8 but sparse, it would be nice to be able to create a SparseArray with the SparseIndex feature tracking which values are set and which are not set.

Obviously, np.nan can't be used to indicate not a value, but maybe a default can be provided (in my case, zero is a nice default).

@jreback
Copy link
Contributor

jreback commented Jun 4, 2013

this is slated for 0.12 after a big refactor of how sparse is handled
because its a bit non-trivial

@jreback
Copy link
Contributor

jreback commented Jun 4, 2013

see #3482

@jreback
Copy link
Contributor

jreback commented Sep 20, 2013

dupe of #667

@jreback jreback closed this as completed Sep 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Duplicate Report Duplicate issue or pull request Enhancement Internals Related to non-user accessible pandas implementation Refactor Internal refactoring of code Sparse Sparse Data Type
Projects
None yet
Development

No branches or pull requests

2 participants