dfr slice for dataframe

Creates new dataframe from a slice of rows.

WARNING

Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag

Signature

> dfr slice {flags} (offset) (size)

Parameters

  • offset: start of slice
  • size: size of slice

Input/output types:

inputoutput
anyany

Examples

Create new dataframe from a slice of the rows

> [[a b]; [1 2] [3 4]] | dfr into-df | dfr slice 0 1
╭───┬───┬───╮
 # │ a │ b │
├───┼───┼───┤
 0  1  2 
╰───┴───┴───╯