Spec-Zone.ru › Polars

polars.Series.first

Series.first(
    *,
    ignore_nulls: bool = False,
) → PythonLiteral | None

Get the first element of the Series.

Parameters:
ignore_nulls

Ignore null values (default False). If set to True, the first non-null value is returned, otherwise None is returned if no non-null value exists.

Returns `None` if the Series is empty.

© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.first.html

Spec-Zone.ru

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