Skip to content

Get the last column of the context

Description

Get the last column of the context

Usage

pl$last()

Value

A polars expression

Examples

library("polars")

df <- pl$DataFrame(
  a = c(1, 8, 3),
  b = c(4, 5, 2),
  c = c("foo", "bar", "baz")
)

df$select(pl$last())
#> shape: (3, 1)
#> ┌─────┐
#> │ c   │
#> │ --- │
#> │ str │
#> ╞═════╡
#> │ foo │
#> │ bar │
#> │ baz │
#> └─────┘