polars.Series.to_list#
- Series.to_list(*, use_pyarrow: bool | None = None) list[Any] [source]#
Convert this Series to a Python list.
This operation copies data.
- Parameters:
- use_pyarrow
Use PyArrow to perform the conversion.
Deprecated since version 0.19.9: This parameter will be removed. The function can safely be called without the parameter - it should give the exact same result.
Examples
>>> s = pl.Series("a", [1, 2, 3]) >>> s.to_list() [1, 2, 3] >>> type(s.to_list()) <class 'list'>