Spec-Zone.ru › Polars

polars.Series.to_arrow

Series.to_arrow(
    *,
    compat_level: CompatLevel | None = None,
) → Array

Return the underlying Arrow array.

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

Changed in version 1.24: The future parameter was renamed compat_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
]

© 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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API