collect_schema
produces incorrect results for an aggregation function followed by .dt.*
. in a group_by
context.
#19990
Labels
accepted
Ready for implementation
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
Methods from the
.dt
namespace lead to an incorrect conclusion bycollect_schema
when used in agroup_by
context (it works correctly when replacing the above.group_by("id").agg(
by.select(
) and when preceded by an aggregation function.min
but it behaves the same way withmax
,mean
,median
, ...day
bymonth
oryear
.Expected behavior
Calling
collect_schema
on theLazyFrame
should also yieldSchema({'id': String, 'literal': Int8})
instead ofSchema({'id': String, 'literal': List(Int8)})
.Installed versions
The text was updated successfully, but these errors were encountered: