polars.Series.to_arrow#

Series.to_arrow() Array[source]#

Return the underlying Arrow array.

If the Series contains only a single chunk this operation is zero copy.

Examples

>>> s = pl.Series("a", [1, 2, 3])
>>> s = s.to_arrow()
>>> s
<pyarrow.lib.Int64Array object at ...>
[
  1,
  2,
  3
]