Take every nth row in the LazyFrame
Description
Take every nth row in the LazyFrame
Usage
<LazyFrame>$gather_every(n, offset = 0)
Arguments
n
|
Gather every n -th row.
|
offset
|
Starting index. |
Value
A LazyFrame
Examples
#> shape: (2, 2)
#> ┌─────┬─────┐
#> │ a ┆ b │
#> │ --- ┆ --- │
#> │ i32 ┆ i32 │
#> ╞═════╪═════╡
#> │ 1 ┆ 5 │
#> │ 3 ┆ 7 │
#> └─────┴─────┘
#> shape: (2, 2)
#> ┌─────┬─────┐
#> │ a ┆ b │
#> │ --- ┆ --- │
#> │ i32 ┆ i32 │
#> ╞═════╪═════╡
#> │ 2 ┆ 6 │
#> │ 4 ┆ 8 │
#> └─────┴─────┘