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

ENH : First attempt to add sparse_pivot #14510

Closed
wants to merge 4 commits into from

Conversation

yupbank
Copy link

@yupbank yupbank commented Oct 27, 2016

sparse_series = pivot_sparse(index=df['a'], columns=df['b'], values=df['c'])

@yupbank yupbank changed the title First attempt to add sparse_pivot ENH : First attempt to add sparse_pivot Oct 27, 2016
@jorisvandenbossche jorisvandenbossche added Enhancement Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Oct 27, 2016
@jreback
Copy link
Contributor

jreback commented Dec 16, 2016

this would need to be an actual sparse pivot implementation. converting to dense then pivotting doesn't really work here. If you have some thoughts on that, pls reopen / comment.

@jreback jreback closed this Dec 16, 2016
@yupbank
Copy link
Author

yupbank commented Dec 17, 2016

hmm.. i didn't convert to dense though...

the idea is just transforming the index instead of data/values. it's like keep the data in a series and update the new index which is after pivot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants