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
thread '<unnamed>' panicked at crates/polars-ops/src/chunked_array/hist.rs:71:37:
called `Option::unwrap()` on a `None` value
Issue description
Calling Expr.hist / Series.hist on an empty series fails with an error in the corresponding Rust code.
The problematic part in the Rust code is that ChunkAgg::min(ca) and ChunkAgg::max(ca) return None, which is then unwrapped without proper None check handling.
Expected behavior
Return an empty table with the same schema as when Expr.hist / Series.hist is called on non-empty series.
Checks
Reproducible example
Log output
Issue description
Calling
Expr.hist
/Series.hist
on an empty series fails with an error in the corresponding Rust code.The problematic part in the Rust code is that
ChunkAgg::min(ca)
andChunkAgg::max(ca)
returnNone
, which is then unwrapped without properNone
check handling.Expected behavior
Return an empty table with the same schema as when
Expr.hist
/Series.hist
is called on non-empty series.Installed versions
The text was updated successfully, but these errors were encountered: