polars schema

For dataframe.

Show schema for a dataframe.

warning This command requires a plugin The polars schema command resides in the polars plugin. To use this command, you must install and register nu_plugin_polars. See the Plugins chapter in the book for more information.

Command Type

plugin

Signature

> polars schema {flags}

Flags

  • --datatype-list, -l: Creates a lazy dataframe.

Input/output types:

input output
any record

Examples

Dataframe schema

> [[a b]; [1 "foo"] [3 "bar"]] | polars into-df | polars schema
╭───┬─────╮
│ a │ i64 │
│ b │ str │
╰───┴─────╯

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.