polars.last

polars.last(column: str) polars.internals.expr.Expr
polars.last(column: polars.internals.series.Series) Any
polars.last(column: None = None) polars.internals.expr.Expr

Get the last value.

Depending on the input type this function does different things:

input:

  • None -> expression to take last column of a context.

  • str -> syntactic sugar for pl.col(..).last()

  • Series -> Take last value in Series