dfr fetch for lazyframe

collects the lazyframe to the selected rows.

Signature

> dfr fetch (rows)

Parameters

  • rows: number of rows to be fetched from lazyframe

Input/output types:

inputoutput
anyany

Examples

Fetch a rows from the dataframe

> [[a b]; [6 2] [4 2] [2 2]] | dfr into-df | dfr fetch 2
╭───┬───┬───╮
│ # │ a │ b │
├───┼───┼───┤
│ 062 │
│ 142 │
╰───┴───┴───╯

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