Skip to main content

first

Function first 

Source
pub fn first(col: &Column, ignorenulls: bool) -> Column
Expand description

First value in group (PySpark first). Use in groupBy.agg(). ignorenulls: when true, first non-null; Polars 0.45 uses .first() only (ignorenulls reserved for API compatibility).