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.
Issue description
When using from_dicts() and specifying a Categorical column via schema=, it's possible to encounter pyo3_runtime.PanicException: internal error: entered unreachable code. This happens if the Categorical column's first value is null, and a subsequent row from the list of dicts has a non-null value for it.
This error doesn't happen when the Categorical column starts with a non-null value, or when the column type is instead Utf8.
Polars version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Issue description
When using
from_dicts()
and specifying a Categorical column viaschema=
, it's possible to encounterpyo3_runtime.PanicException: internal error: entered unreachable code
. This happens if the Categorical column's first value is null, and a subsequent row from the list of dicts has a non-null value for it.This error doesn't happen when the Categorical column starts with a non-null value, or when the column type is instead Utf8.
Reproducible example
Expected behavior
The output of the example above should be equal to
DataFrame([Series("A", [None, "foo"], dtype=Categorical)])
.Installed versions
The text was updated successfully, but these errors were encountered: