-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Pivot to SparseDataFrame: TypeError: ufunc 'isnan' not supported in sparse matrix conversion #11633
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
Milestone
Comments
If I include
|
you would have to show a copy-pastable example. and |
please see updated post with an example above |
|
this is quite easy to fix, need to replace pull-requests are welcome |
Do you have a test file dedicated to sparse? |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
pivot
function for automatic conversion into SparseDataFrame?The text was updated successfully, but these errors were encountered: