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
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Reproducible example
importpolarsaspldf= (
pl.DataFrame({"col0": [0], "col1": ["a"], "col2": ["b"]})
.lazy()
.melt(id_vars="row_nr")
.collect()
)
# pyo3_runtime.PanicException: called `Option::unwrap()` on a `None` value
Log output
thread '<unnamed>' panicked at crates/polars-plan/src/logical_plan/builder_functions.rs:22:55:
called `Option::unwrap()` on a `None` valuenote: run with `RUST_BACKTRACE=1` environment variable to display a backtraceTraceback (most recent call last): File "/home/stijn/code/polars/py-polars/repro.py", line 6, in<module> .melt(id_vars="row_nr") ^^^^^^^^^^^^^^^^^^^^^^ File "/home/stijn/code/polars/py-polars/polars/lazyframe/frame.py", line 5409, in melt self._ldf.melt(id_vars, value_vars, value_name, variable_name, streamable)pyo3_runtime.PanicException: called `Option::unwrap()` on a `None` value
Issue description
In lazy mode this panics. In eager mode, this returns a somewhat sensible error:
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Reproducible example
Log output
Issue description
In lazy mode this panics. In eager mode, this returns a somewhat sensible error:
polars.exceptions.SchemaFieldNotFoundError: row_nr
Expected behavior
Throw a proper error.
Installed versions
main branch
The text was updated successfully, but these errors were encountered: