W3cubDocs

/Nushell

dfr fetch for lazyframe

collects the lazyframe to the selected rows.

Signature

> dfr fetch {flags} (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

> [[ab]; [62] [42] [22]] |dfr into-df|dfr fetch2
╭───┬───┬───╮
# │ 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

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/dfr_fetch.html