-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
SparseDataFrame should be able to handle also non float non sparse Columns #2873
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
In the same vein, the following code yields an error too:
|
your last example in your initial comment doesn''t produce an error (e.g. df is a SparseDataFrame) |
You are right and I a deeply sorry for that.
|
if I understand your first example your want to have a sparse frame that also has dense columns (possibly of a different dtype)? |
Yes. One could need a dataframe where only some columns are worth to be used as sparse columns. I would like to be able to sparsify specific columns. I do not know if it is compatible with pandas internals. |
partially in #3482 |
dup of #667 |
dup of #667
I use pandas version 0.10.1
When trying to build a DataFrame with columns that can equally be of the type int/float/str
and be sparse or not I ran into trouble.
works fine. But the following doesn't:
Also, the following example doesn't yield to a SparseDataFrame:
but this might be a feature since modifying df[0] should not modify df.
Finally the following doesn't yield to a SparseDataFrame
I would be very happy to use the power of pandas to deal with sparse structures.
So my last item is a question: Is the development of sparse objects a priority of the pandas project team ?
Thank you for your for providing such a nice piece of software
The text was updated successfully, but these errors were encountered: