W3cubDocs

/Nushell

dfr shape for dataframe

Shows column and row size for a dataframe.

Signature

> dfr shape {flags}

Input/output types:

input output
any any

Examples

Shows row and column shape

> [[ab]; [12] [34]] |dfr into-df|dfr shape
╭───┬──────┬─────────╮
# │ rows │ columns │
├───┼──────┼─────────┤
022
╰───┴──────┴─────────╯

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