polars into-schema

For dataframe.

Convert a value to a polars schema object

warning This command requires a plugin The polars into-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 into-schema {flags}

Input/output types:

input output
any polars_schema

Examples

Convert a record into a schema and back to a nu object

> {a: str, b: u8} | polars into-schema | polars into-nu
╭───┬─────╮
│ a │ str │
│ b │ u8  │
╰───┴─────╯

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