polars.head

polars.head(column: str, n: Optional[int]) polars.internals.expr.Expr
polars.head(column: polars.internals.series.Series, n: Optional[int]) polars.internals.series.Series

Get the first n rows of an Expression.

Parameters
column

Column name or Series.

n

Number of rows to take.