polars selector duration

For expression.

Select all duration columns. Optionally filter by time unit (ns, us, ms).

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

Flags

  • --time-unit {list<string>}: Filter by time unit(s): ns (nanoseconds), us (microseconds), ms (milliseconds).

Input/output types:

input output
any polars_selector

Examples

Create a selector for all duration columns

> polars selector duration

Create a selector for nanosecond or microsecond duration columns

> polars selector duration --time-unit [ns us]

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