Get the last n
rows.
Description
Get the last n
rows.
Usage
<DataFrame>$tail(n = 5L)
Arguments
n
|
Number of rows to return. If a negative value is passed, return all rows
except the first abs(n) .
|
Value
A DataFrame
Examples
#> shape: (3, 3)
#> ┌─────┬─────┬─────┐
#> │ foo ┆ bar ┆ ham │
#> │ --- ┆ --- ┆ --- │
#> │ i32 ┆ i32 ┆ str │
#> ╞═════╪═════╪═════╡
#> │ 3 ┆ 8 ┆ c │
#> │ 4 ┆ 9 ┆ d │
#> │ 5 ┆ 10 ┆ e │
#> └─────┴─────┴─────┘
#> shape: (2, 3)
#> ┌─────┬─────┬─────┐
#> │ foo ┆ bar ┆ ham │
#> │ --- ┆ --- ┆ --- │
#> │ i32 ┆ i32 ┆ str │
#> ╞═════╪═════╪═════╡
#> │ 4 ┆ 9 ┆ d │
#> │ 5 ┆ 10 ┆ e │
#> └─────┴─────┴─────┘