Skip to content

Add distinct_on to dataframe api #11011

@Omega359

Description

@Omega359

Is your feature request related to a problem or challenge?

The dataframe api has a distinct(self) function however it's missing a distinct_on equivalent that is available in the logical plan. DISTINCT ON is available for use via sql and this issue is to add the equivalent to the dataframe api.

Describe the solution you'd like

A new function distinct_on( self, on_expr: Vec<Expr>, select_expr: Vec<Expr>, sort_expr: Option<Vec<Expr>>, ) -> Result<DataFrame>
added to the dataframe api.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

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