Skip to content

Add pivot & unpivot (melt) to DataFrame #12907

@ion-elgreco

Description

@ion-elgreco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions