Creating this simple dataframe will always give an error with fixedsizelists
thread '<unnamed>' panicked at crates/polars-core/src/series/ops/reshape.rs:159:26:
called `Result::unwrap()` on an `Err` value: ComputeError(ErrString("FixedSizeListArray's child's DataType must match. However, the expected DataType is Unknown while it got FixedSizeBinary(8)."))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
File "/home/johndoe/Projects/polars/t.py", line 12, in <module>
df = pl.DataFrame({ 'x': arr2 }, schema={'x': pl.List(pl.Int8)})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johndoe/Projects/polars/py-polars/polars/dataframe/frame.py", line 360, in __init__
self._df = dict_to_pydf(
^^^^^^^^^^^^^
File "/home/johndoe/Projects/polars/py-polars/polars/_utils/construction/dataframe.py", line 159, in dict_to_pydf
for s in _expand_dict_values(
^^^^^^^^^^^^^^^^^^^^
File "/home/johndoe/Projects/polars/py-polars/polars/_utils/construction/dataframe.py", line 388, in _expand_dict_values
updated_data[name] = pl.Series(
^^^^^^^^^^
File "/home/johndoe/Projects/polars/py-polars/polars/series/series.py", line 300, in __init__
self._s = numpy_to_pyseries(
^^^^^^^^^^^^^^^^^^
File "/home/johndoe/Projects/polars/py-polars/polars/_utils/construction/series.py", line 465, in numpy_to_pyseries
return wrap_s(py_s).reshape(original_shape)._s
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johndoe/Projects/polars/py-polars/polars/series/series.py", line 6790, in reshape
return self._from_pyseries(self._s.reshape(dimensions))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyo3_runtime.PanicException: called `Result::unwrap()` on an `Err` value: ComputeError(ErrString("FixedSizeListArray's child's DataType must match. However, the expected DataType is Unknown while it got FixedSizeBinary(8)."))
Checks
Reproducible example
Log output
No response
Issue description
Creating this simple dataframe will always give an error with fixedsizelists
Expected behavior
No panic
Installed versions