Learn R Programming

polars (version 0.7.0)

Expr_head: Head

Description

Get the head n elements. Similar to R head(x)

Usage

Expr_head(n = 10)

Value

Expr

Arguments

n

numeric number of elements to select from head

Examples

Run this code
# get 3 first elements
pl$DataFrame(list(x = 1:11))$select(pl$col("x")$head(3))

Run the code above in your browser using DataLab