polars.Series.first
-
Get the first element of the Series.
- Parameters:
-
- ignore_nulls
-
Ignore null values (default
False). If set toTrue, the first non-null value is returned, otherwiseNoneis returned if no non-null value exists. - Returns `None` if the Series is empty.
Series.first(
*,
ignore_nulls: bool = False,
) → PythonLiteral | None
© 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