-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
BUG: SparseSeries concat results in dense #12844
Conversation
if len(typs) == 1: | ||
fill_values = set(c.fill_value for c in to_concat) | ||
if len(fill_values) == 1: | ||
sp_values = [c.sp_values for c in to_concat] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make a comment here that explains what is happening (that you need 1 typ and 1 fill value to get back a Sparse result), otherwise its dense)
c42b399
to
5a35961
Compare
@jreback Added |
@@ -0,0 +1,329 @@ | |||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why don't we put this in pandas/types/concat.py
0262511
to
5f94366
Compare
lgtm. any tests to move as well? (from core/common.py)? |
actually going to merge this. other things going to depend. |
git diff upstream/master | flake8 --diff