group_by mean with error pyo3_runtime.PanicException: implementation error, cannot get ref Float64 from Float32
#22328
Labels
bug
Something isn't working
needs repro
Bug does not yet have a reproducible example
python
Related to Python Polars
Uh oh!
There was an error while loading. Please reload this page.
Checks
Reproducible example
Log output
Issue description
I am performing some actions on lazyframe. At the input for the target field, I have data type f32. Then after aggregation
group_by
+mean
I get f64. At the same time, intermediatecollect()
are executed and I can print dataframes. At the end I executefill_null(0)
and I get an error during the collection after that:pyo3_runtime.PanicException: implementation error, cannot get ref Float64 from Float32
.If I make some other subset of data, then after aggregation the data type f32 is preserved and no error occurs.
Expected behavior
Saved type f32 after
group_by
+mean
Installed versions
The text was updated successfully, but these errors were encountered: