polars.Series.arr.to_list#
- Series.arr.to_list() Series [source]#
Convert an Array column into a List column with the same inner data type.
- Returns:
- Series
Series of data type
List
.
Examples
>>> s = pl.Series([[1, 2], [3, 4]], dtype=pl.Array(inner=pl.Int8, width=2)) >>> s.arr.to_list() shape: (2,) Series: '' [list[i8]] [ [1, 2] [3, 4] ]