polars shape для dataframe
Показывает количество столбцов и строк в dataframe.
Сигнатура
> polars shape {flags}
Типы входных и выходных данных:
| входные данные | выходные данные |
|---|---|
| polars_dataframe | polars_dataframe |
| polars_lazyframe | polars_lazyframe |
Примеры
Показывает количество строк и столбцов
> [[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