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

Change melt to have optional parameters in line with Pandas DateFrame and R's data.table #554

Open
totalgit74 opened this issue Nov 27, 2022 · 0 comments

Comments

@totalgit74
Copy link

Currently the FrameModule.Melt method converts all columns to key-value pairs under the index. It would good to be able to provide parameters like Python's Pandas DataFrame and R's data.table melt operations where you can specify the ID columns to use to distinguish the rows (effectively the index) and the columns you actually wish to melt. It is possible to mimic this behaviour by re-indexing and sub-setting columns before melting but it is likely nowhere near as efficient as being able to implement the functionality under the hood where it can be better optimised, especially as the frames get much larger.

Pandas melt

melt.data.table, Vignette

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant