Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Apr 10, 2016

@sinhrks sinhrks added Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode Sparse Sparse Data Type labels Apr 10, 2016
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]
Copy link
Contributor

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)

@sinhrks sinhrks added this to the 0.18.1 milestone Apr 10, 2016
@sinhrks sinhrks force-pushed the sparse_concat branch 3 times, most recently from c42b399 to 5a35961 Compare April 15, 2016 22:04
@sinhrks
Copy link
Member Author

sinhrks commented Apr 15, 2016

@jreback Added core/concat.py and moved all concat related utility funcs. Does this meet your intention?

@@ -0,0 +1,329 @@
"""
Copy link
Contributor

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

@sinhrks sinhrks force-pushed the sparse_concat branch 2 times, most recently from 0262511 to 5f94366 Compare April 17, 2016 15:19
@jreback
Copy link
Contributor

jreback commented Apr 18, 2016

lgtm. any tests to move as well? (from core/common.py)?

@jreback
Copy link
Contributor

jreback commented Apr 18, 2016

actually going to merge this. other things going to depend.

@jreback jreback closed this in 26782a9 Apr 18, 2016
@sinhrks sinhrks deleted the sparse_concat branch April 18, 2016 20:24
@kawochen kawochen mentioned this pull request Apr 18, 2016
18 tasks
@jreback jreback mentioned this pull request Apr 26, 2016
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode Sparse Sparse Data Type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Concat does not work for sparse series
2 participants