crash when using to_list()
on list[extension] type series
#19418
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
The following will crash a python kernel - verified with polars 1.11 on google colab.
Log output
Issue description
A crash occurs when using
to_list()
on a polars series which has a dtype oflist[extension]
because it contains lists of python objects. The repro is short and reliable for creating a crash.Maybe relevant observation: there are some other issues open relating to crashes when using extension type or python objects and they may have a common root cause to investigate.
Expected behavior
Expect that
to_list()
will get a list of lists of python objects.The rendering as a polars series is the following:
And expectation is that
to_list()
should returnThis expectation is consistent with how polars behaves in the repro, if using integers, instead of python objects:
Installed versions
The text was updated successfully, but these errors were encountered: