Misleading ShapeError error message #19795
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
rust
Related to Rust Polars
Checks
Reproducible example
Log output
No response
Issue description
When trying to create a DataFrame from two series with mismatching length this (rightfully) causes a
ShapeError
exception, whose error message currently reads something like:The issue is, that instead of the name of the first series, the length of the series is returned, but the wording implies that it's the name which is not helpful for debugging the error and can be confusing.
The relevant line in the source code is
polars/crates/polars-core/src/frame/mod.rs
Line 284 in 5f11dd9
where the surrounding code currently reads:
My proposal is that instead it should be:
Expected behavior
The expected error message should instead read
Installed versions
1.13.1
The text was updated successfully, but these errors were encountered: