polars into-dtype

For dataframe.

Convert a string to a specific datatype.

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

Input/output types:

input output
string polars_dataframe

Examples

Convert a string to a specific datatype and back to a nu object

> 'i64' | polars into-dtype | polars into-nu
i64

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