Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
  • 한국어
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
  • 한국어
GitHub
  • Categories

    • Bits
    • Bytes
    • Chart
    • Conversions
    • Core
    • Database
    • Dataframe
    • Dataframe Or Lazyframe
    • Date
    • Debug
    • Default
    • Env
    • Experimental
    • Expression
    • Filesystem
    • Filters
    • Formats
    • Generators
    • Hash
    • History
    • Lazyframe
    • Math
    • Misc
    • Network
    • Path
    • Platform
    • Plugin
    • Prompt
    • Random
    • Removed
    • Shells
    • Strings
    • System
    • Viewers

Expression

CommandDescription
polars arg-whereCreates an expression that returns the arguments where expression is true.
polars asCreates an alias expression.
polars colCreates a named column expression.
polars concat-strCreates a concat string expression.
polars datepartCreates an expression for capturing the specified datepart in a column.
polars horizontalHorizontal calculation across multiple columns.
polars is-inCreates an is-in expression or checks to see if the elements are contained in the right series
polars litCreates a literal expression.
polars otherwiseCompletes a when expression.
polars replaceCreate an expression that replaces old values with new values
polars selectorCreate column selectors for use in polars commands.
polars selector allCreates a selector that selects all columns.
polars selector alphaSelect all columns with alphabetic names (eg: only letters). Matching column names cannot contain *any* non-alphabetic characters. Note that the definition of "alphabetic" consists of all valid Unicode alphabetic characters by default; this can be changed by setting `--ascii-only`.
polars selector alphanumericSelect all columns with alphanumeric names (eg: only letters). Matching column names cannot contain *any* non-alphanumeric characters. Note that the definition of "alphanumeric" consists of all valid Unicode alphanumeric characters by default; this can be changed by setting `ascii_only=true`.
polars selector arraySelect all array columns. Optionally filter by fixed width.
polars selector binarySelect all binary columns.
polars selector booleanSelect all boolean columns.
polars selector by-dtypeCreates a selector that selects columns by data type.
polars selector by-indexSelect columns by their index position. Supports negative indices (e.g., -1 for the last column).
polars selector by-nameCreates a selector that selects columns by name.
polars selector categoricalSelect all categorical columns.
polars selector containsSelect columns whose names contain the given literal substring(s).
polars selector dateSelect all date columns.
polars selector datetimeSelect all datetime columns. Optionally filter by time unit (ns, us, ms) and/or timezone.
polars selector decimalSelect all decimal columns.
polars selector digitSelect columns whose names consist entirely of digit characters. By default uses Unicode decimal digits; use `--ascii-only` to restrict to ASCII 0-9.
polars selector durationSelect all duration columns. Optionally filter by time unit (ns, us, ms).
polars selector emptyCreate an empty selector that matches no columns. Useful as a base for selector composition.
polars selector ends-withSelect columns that end with the given substring(s).
polars selector enumSelect all enum columns.
polars selector excludeSelect all columns except those with the given name(s). This is the inverse of `polars selector by-name`.
polars selector firstCreates a selector that selects the first column(s) by index.
polars selector floatSelect all float columns.
polars selector integerSelect all integer columns.
polars selector lastCreates a selector that selects the last column(s) by index.
polars selector listSelect all list columns.
polars selector matchesSelect all columns that match the given regex pattern.
polars selector nestedSelect all nested columns (list, array, or struct).
polars selector notInverts selector.
polars selector numericSelect all numeric columns.
polars selector objectSelect all object columns.
polars selector signed-integerSelect all signed integer columns.
polars selector starts-withSelect columns that start with the given substring(s).
polars selector stringSelect all string columns. Use `--include-categorical` to also select categorical columns.
polars selector structSelect all struct columns.
polars selector temporalSelect all temporal columns (date, datetime, duration, and time).
polars selector unsigned-integerSelect all unsigned integer columns.
polars truncateDivide the date/datetime range into buckets.
polars whenCreates and modifies a when expression.
Prev
Experimental
Next
Filesystem