Skip to content

Wide to long panel function #4920

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

Closed
jseabold opened this issue Sep 21, 2013 · 5 comments · Fixed by #5564
Closed

Wide to long panel function #4920

jseabold opened this issue Sep 21, 2013 · 5 comments · Fixed by #5564
Labels
Enhancement Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Milestone

Comments

@jseabold
Copy link
Contributor

This has been a pain point for me. The use case is pretty specific. Cf. reshape long in stata.

https://gist.github.com/jseabold/6653108

Can add tests and make a PR, if desired.

@jtratner
Copy link
Contributor

seems reasonable, mostly an extension to melt, right?

@jreback
Copy link
Contributor

jreback commented Sep 21, 2013

maybe just add a kw to melt to 'do' this?

@jseabold
Copy link
Contributor Author

yeah, i just was tired of "thinking" whenever i had to use melt

@cpcloud
Copy link
Member

cpcloud commented Sep 21, 2013

@jseabold FWIW I have the opposite problem: I always have to think when using pivot et al. :)

Also reshape2's melt handles ND arrays, so maybe it should just "work" without a kwarg

@cpcloud
Copy link
Member

cpcloud commented Sep 21, 2013

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 a pull request may close this issue.

4 participants