Get the last n
rows.
Description
Get the last n
rows.
Usage
<LazyFrame>$tail(n = 5L)
Arguments
n
|
Number of rows to return. |
Value
A new LazyFrame
object with applied filter.
See Also
<LazyFrame>$head()
Examples
#> shape: (5, 2)
#> ┌─────┬─────┐
#> │ a ┆ b │
#> │ --- ┆ --- │
#> │ i32 ┆ i32 │
#> ╞═════╪═════╡
#> │ 2 ┆ 8 │
#> │ 3 ┆ 9 │
#> │ 4 ┆ 10 │
#> │ 5 ┆ 11 │
#> │ 6 ┆ 12 │
#> └─────┴─────┘
#> shape: (2, 2)
#> ┌─────┬─────┐
#> │ a ┆ b │
#> │ --- ┆ --- │
#> │ i32 ┆ i32 │
#> ╞═════╪═════╡
#> │ 5 ┆ 11 │
#> │ 6 ┆ 12 │
#> └─────┴─────┘