You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1)
importpolarsasplfrombastionlab.polars.policyimportPolicy, TrueRule, Logrepro_df=pl.DataFrame({ "hello": [1, 2, 3], "world": [1, 2, 3] })
repro_rdf=connection.client.polars.send_df(repro_df, policy=Policy(safe_zone=TrueRule(), unsafe_handling=Log(), savable=False))
(
repro_rdf
.groupby(pl.col("hello"))
.agg(pl.col("world")) # replace with .agg(pl.col("world")).sum() for it to work
.sort(pl.col("world"))
).collect().fetch()
results in
thread 'tokio-runtime-worker' panicked at 'this operation is not implemented/valid for this dtype: List(Int64)', /home/cchudant/.cargo/registry/src/github.com-1ecc6299db9ec823/polars-core-0.25.1/src/series/series_trait.rs:427:9
This is inside polars, not sure how to proceed here
The text was updated successfully, but these errors were encountered:
I believe the operation you're trying to perform does no really make sense: the aggregation step does not involve an aggregation function which means you get the list of values in the group for the "world" column, then you try to sort the same column which fails as polars doesn't know how to sort lists.
Repro:
results in
This is inside polars, not sure how to proceed here
The text was updated successfully, but these errors were encountered: