SparseArray with dtype != float64 #3756
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
It would be nice to support sparse arrays with
dtype
that is not justfloat64
. Specifically, I have some data that isint8
but sparse, it would be nice to be able to create aSparseArray
with theSparseIndex
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).The text was updated successfully, but these errors were encountered: