polars.Series.to_arrow
-
Return the underlying Arrow array.
If the Series contains only a single chunk this operation is zero copy.
Changed in version 1.24: The
futureparameter was renamedcompat_level.- Parameters:
-
- compat_level
-
Use a specific compatibility level when exporting Polars’ internal data structures.
Examples
>>> s = pl.Series("a", [1, 2, 3]) >>> s = s.to_arrow() >>> s <pyarrow.lib.Int64Array object at ...> [ 1, 2, 3 ]
Series.to_arrow(
*,
compat_level: CompatLevel | None = None,
) → Array
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.to_arrow.html