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:
input | output |
---|---|
any | any |
Examples
Fetch a rows from the dataframe
> [[a b]; [6 2] [4 2] [2 2]] | dfr into-df | dfr fetch 2
╭───┬───┬───╮
│ # │ a │ b │
├───┼───┼───┤
│ 0 │ 6 │ 2 │
│ 1 │ 4 │ 2 │
╰───┴───┴───╯
Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe
flag