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

Add pivot & unpivot (melt) to DataFrame #12907

Open
ion-elgreco opened this issue Oct 13, 2024 · 1 comment
Open

Add pivot & unpivot (melt) to DataFrame #12907

ion-elgreco opened this issue Oct 13, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ion-elgreco
Copy link

Is your feature request related to a problem or challenge?

Pivoting and unpivoting is a common use case for data scientists, this is currently missing in the DF api.

Describe the solution you'd like

Add two methods to DataFrame struct:

  • pivot
    • possibility to add distinct values in advance (would be optimized into groupby.agg() directly)
    • let DataFusion calculate distinct values automatically
  • unpivot

Describe alternatives you've considered

No response

Additional context

No response

@ion-elgreco ion-elgreco added the enhancement New feature or request label Oct 13, 2024
@Omega359
Copy link
Contributor

referenced in apache/datafusion-python#875

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

No branches or pull requests

2 participants