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 /home/stijn/code/polars/crates/polars-core/src/named_from.rs:162:86:
called `Result::unwrap()` on an `Err` value: InvalidOperation(ErrString("`list_builder` operation not supported for dtype `object`"))note: 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 11, in<module> s = pl.Series([[object()]], dtype=pl.List(pl.Object())) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stijn/code/polars/py-polars/polars/series/series.py", line 314, in __init__ self._s = sequence_to_pyseries( ^^^^^^^^^^^^^^^^^^^^^ File "/home/stijn/code/polars/py-polars/polars/_utils/construction/series.py", line 277, in sequence_to_pyseries pyseries = PySeries.new_series_list(name, pyseries_list, strict) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: InvalidOperation(ErrString("`list_builder` operation not supported for dtype `object`"))
Checks
Reproducible example
Log output
Issue description
Offending code is here:
polars/crates/polars-core/src/series/mod.rs
Lines 161 to 173 in d7d720a
Clearly this doesn't account for nested object types.
Expected behavior
Return an empty Series.
Installed versions
main
The text was updated successfully, but these errors were encountered: