polars selector duration for expression
Select all duration columns. Optionally filter by time unit (ns, us, ms).
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 durationCreate a selector for nanosecond or microsecond duration columns
> polars selector duration --time-unit [ns us]