Get the first n
rows
Description
$limit()
is an alias for
$head()
.
Usage
<LazyFrame>$head(n = 5)
lazyframe__limit(n = 5)
Arguments
n
|
Number of rows to return. |
Value
A polars LazyFrame
Examples
#> shape: (5, 2)
#> ┌─────┬─────┐
#> │ a ┆ b │
#> │ --- ┆ --- │
#> │ i32 ┆ i32 │
#> ╞═════╪═════╡
#> │ 1 ┆ 7 │
#> │ 2 ┆ 8 │
#> │ 3 ┆ 9 │
#> │ 4 ┆ 10 │
#> │ 5 ┆ 11 │
#> └─────┴─────┘
#> shape: (2, 2)
#> ┌─────┬─────┐
#> │ a ┆ b │
#> │ --- ┆ --- │
#> │ i32 ┆ i32 │
#> ╞═════╪═════╡
#> │ 1 ┆ 7 │
#> │ 2 ┆ 8 │
#> └─────┴─────┘