DataFrame.sort()
raises PanicException: arg_sort
operation not supported for dtype struct[1]
#7777
Closed
2 tasks done
Polars version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Issue description
Using
df.sort()
with a struct column raises an error pointing to:https://github.com/pola-rs/polars/blob/master/polars/polars-core/src/series/series_trait.rs#L361-L363
Expr.sort was added for struct in #7021 - it seems like it should be possible in
df.sort
too?Edit: It seems it's not specific to struct - it happens with lists too.
Thanks all.
Reproducible example
Expected behavior
Installed versions
The text was updated successfully, but these errors were encountered: