Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Pivot to SparseDataFrame: TypeError: ufunc 'isnan' not supported in sparse matrix conversion #11633
Comments
DSLituiev
commented
Nov 18, 2015
|
If I include
|
|
you would have to show a copy-pastable example. and |
jreback
added Reshaping Sparse
labels
Nov 18, 2015
DSLituiev
commented
Dec 10, 2015
|
please see updated post with an example above |
DSLituiev
commented
Dec 10, 2015
|
jreback
added Bug Difficulty Novice Effort Low
labels
Dec 10, 2015
jreback
added this to the
Next Major Release
milestone
Dec 10, 2015
|
this is quite easy to fix, need to replace pull-requests are welcome |
DSLituiev
commented
Dec 16, 2015
|
Do you have a test file dedicated to sparse? |
DSLituiev
referenced
this issue
Dec 16, 2015
Closed
fixed conversion to sparse for non-numeric index #11856
jreback
modified the milestone: 0.18.1, Next Major Release
Feb 23, 2016
jreback
modified the milestone: 0.18.2, 0.18.1
Apr 18, 2016
sinhrks
referenced
this issue
May 17, 2016
Closed
BUG: Sparse creation with object dtype may raise TypeError #13201
jreback
closed this
in 86f68e6
May 18, 2016
nps
added a commit
to nps/pandas
that referenced
this issue
May 30, 2016
|
|
sinhrks + nps |
6749e72
|
sinhrks
referenced
this issue
Aug 20, 2016
Merged
ENH: Sparse int64 and bool dtype support enhancement #13849
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DSLituiev commentedNov 18, 2015
I want to convert a DataFrame to SparseDataFrame before pivoting it (when it gets really sparse, see also this discussion ). I have a textual key, which I need to keep ("chr"):
For this small table it works well with regular
DataFrame:But I need to do it on much larger matrices. So I tried to do following trick:
but I am getting:
Are there any plans to include a functionality option into
pivotfunction for automatic conversion into SparseDataFrame?