dfr shift for dataframe or lazyframe

Shifts the values by a given period.

Signature

> dfr shift

Examples

Shifts the values by a given period

> [1 2 2 3 3] | dfr into-df | dfr shift 2 | dfr drop-nulls
╭───┬───╮
│ # │ 0 │
├───┼───┤
│ 01 │
│ 12 │
│ 22 │
╰───┴───╯