Spec-Zone.ru › Nushell

polars into-repr для dataframe

Отображает dataframe в формате repr.

Сигнатура

> polars into-repr {flags}

Типы входных и выходных данных:

входные данные выходные данные
polars_dataframe string
polars_lazyframe string

Примеры

Отображает dataframe в формате repr

> [[a b]; [2025-01-01 2] [2025-01-02 4]] | polars into-df | polars into-repr
shape: (2, 2)
┌─────────────────────────┬─────┐
│ a                       ┆ b   │
│ ---                     ┆ --- │
│ datetime[ns, UTC]       ┆ i64 │
╞═════════════════════════╪═════╡
│ 2025-01-01 00:00:00 UTC ┆ 2   │
│ 2025-01-02 00:00:00 UTC ┆ 4   │
└─────────────────────────┴─────┘

Отображает ленивый dataframe в формате repr

> [[a b]; [2025-01-01 2] [2025-01-02 4]] | polars into-lazy | polars into-repr
shape: (2, 2)
┌─────────────────────────┬─────┐
│ a                       ┆ b   │
│ ---                     ┆ --- │
│ datetime[ns, UTC]       ┆ i64 │
╞═════════════════════════╪═════╡
│ 2025-01-01 00:00:00 UTC ┆ 2   │
│ 2025-01-02 00:00:00 UTC ┆ 4   │
└─────────────────────────┴─────┘

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

Spec-Zone.ru

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