W3cubDocs

/Nushell

dfr slice for dataframe

Creates new dataframe from a slice of rows.

Signature

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

Parameters

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

Input/output types:

input output
any any

Examples

Create new dataframe from a slice of the rows

> [[ab]; [12] [34]] |dfr into-df|dfr slice01
╭───┬───┬───╮
# │ a │ b │
├───┼───┼───┤
012
╰───┴───┴───╯

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_slice.html