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

Support sorting list-of-lists column #17228

Closed
stinodego opened this issue Jun 26, 2024 · 0 comments · Fixed by #20169
Closed

Support sorting list-of-lists column #17228

stinodego opened this issue Jun 26, 2024 · 0 comments · Fixed by #20169
Assignees
Labels
A-ops-sort Area: sorting operations accepted Ready for implementation enhancement New feature or an improvement of an existing feature

Comments

@stinodego
Copy link
Contributor

This currently throws an InvalidOperationError, but there is no reason we couldn't support this.

import polars as pl

s = pl.Series([[[1, 2], [3]], [[4], []]], dtype=pl.List(pl.List(pl.Int64)))
result = s.sort()
polars.exceptions.InvalidOperationError: `sort_with` operation not supported for dtype `list[list[i64]]`
@stinodego stinodego added enhancement New feature or an improvement of an existing feature A-ops-sort Area: sorting operations labels Jun 26, 2024
coastalwhite added a commit to coastalwhite/polars that referenced this issue Dec 5, 2024
@c-peters c-peters added the accepted Ready for implementation label Dec 8, 2024
@github-project-automation github-project-automation bot moved this to Ready in Backlog Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ops-sort Area: sorting operations accepted Ready for implementation enhancement New feature or an improvement of an existing feature
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants