Spec-Zone.ru › Nushell

polars shape for dataframe

Shows column and row size for a dataframe.

Signature

> polars shape {flags}

Input/output types:

input output
polars_dataframe polars_dataframe
polars_lazyframe polars_lazyframe

Examples

Shows row and column shape

> [[a b]; [1 2] [3 4]] | polars into-df | polars shape
╭───┬──────┬─────────╮
│ # │ rows │ columns │
├───┼──────┼─────────┤
│ 0 │    2 │       2 │
╰───┴──────┴─────────╯

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API