.implode().list
method is not valid before .over
.
#18225
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
The example is from another issue, and according to the issue, this expression was legal in earlier versions of polars.
In addition, the error reported in the current polars version is also confusing.
In code that works fine:
'implode' followed by an aggregation is allowed.
But another code
pl.col('type').implode().list.first().over("type", mapping_strategy="explode")
reports an error:InvalidOperationError: 'implode' followed by an aggregation is not allowed
.Expected behavior
I think both expressions should be able to execute normally. If the error code is unreasonable, there should be a more accurate error message.
Installed versions
The text was updated successfully, but these errors were encountered: