polars.Series.to_list#

Series.to_list(use_pyarrow: bool = False) list[Optional[Any]][source]#

Convert this Series to a Python List. This operation clones data.

Parameters:
use_pyarrow

Use pyarrow for the conversion.

Examples

>>> s = pl.Series("a", [1, 2, 3])
>>> s.to_list()
[1, 2, 3]
>>> type(s.to_list())
<class 'list'>