Skip to content

Get the first column of the context

Description

Get the first column of the context

Usage

pl$first()

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$first())
#> shape: (3, 1)
#> ┌─────┐
#> │ a   │
#> │ --- │
#> │ f64 │
#> ╞═════╡
#> │ 1.0 │
#> │ 8.0 │
#> │ 3.0 │
#> └─────┘