polars.Expr.slice

Expr.slice(offset: Union[int, polars.internals.expr.Expr], length: Union[int, polars.internals.expr.Expr]) polars.internals.expr.Expr

Slice the Series.

Parameters
offset

Start index.

length

Length of the slice.