polars_plan::dsl

Module functions

Source
Expand description

§Functions

Functions on expressions that might be useful.

Structs§

Functions§

  • Selects all columns. Shorthand for col("*").
  • Create a new column with the bitwise-and of the elements in each row.
  • Create a new column with the bitwise-or of the elements in each row.
  • Like map_binary, but used in a group_by-aggregation context.
  • arangerange
    Generate a range of integers.
  • arg_sort_by(range or arg_where) and range
    Find the indexes that would sort these series in order of appearance.
  • arg_where(range or arg_where) and arg_where
    Get the indices where condition evaluates true.
  • as_structdtype-struct
    Take several expressions and collect them into a StructChunked.
  • Find the mean of all the values in the column named name. Alias for mean.
  • business_day_countbusiness and dtype-date
  • Casts the column given by Expr to a different type.
  • Folds the expressions from left to right keeping the first non-null values.
  • Create a Column Expression based on a column name.
  • Select multiple columns by name.
  • Horizontally concatenate columns into a single array-type column.
  • Concat lists entries.
  • concat_strconcat_str and strings
    Horizontally concat string columns in linear time
  • covcov
    Compute the covariance between two columns.
  • cum_fold_exprsdtype-struct
    Accumulate over multiple columns horizontally / row wise.
  • cum_reduce_exprsdtype-struct
    Accumulate over multiple columns horizontally / row wise.
  • date_rangerange and temporal
    Create a date range from a start and stop expression.
  • date_rangesrange and temporal
    Create a column of date ranges from a start and stop expression.
  • datetimetemporal
    Construct a column of Datetime from the provided DatetimeArgs.
  • datetime_rangerange and dtype-datetime
    Create a datetime range from a start and stop expression.
  • datetime_rangesrange and dtype-datetime
    Create a column of datetime ranges from a start and stop expression.
  • Select multiple columns by dtype.
  • Select multiple columns by dtype.
  • durationtemporal
    Construct a column of Duration from the provided DurationArgs
  • Accumulate over multiple columns horizontally / row wise.
  • format_strconcat_str and strings
    Format the results of an array of expressions using a format string
  • Select multiple columns by index.
  • Generate a range of integers.
  • Generate a range of integers for each row of the input columns.
  • A column which is false wherever expr is null, true elsewhere.
  • A column which is true wherever expr is null, false elsewhere.
  • Apply a closure on the two columns that are evaluated from Expr a and Expr b.
  • Find the maximum of all the values in the column named name. Shorthand for col(name).max().
  • Create a new column with the maximum value per row.
  • Find the mean of all the values in the column named name. Shorthand for col(name).mean().
  • Compute the mean of all values horizontally across columns.
  • Find the median of all the values in the column named name. Shorthand for col(name).median().
  • Find the minimum of all the values in the column named name. Shorthand for col(name).min().
  • Create a new column with the minimum value per row.
  • Negates a boolean column.
  • Compute the pearson correlation between two columns.
  • Find a specific quantile of all the values in the column named name.
  • Analogous to Iterator::reduce.
  • Create a column of length n containing n copies of the literal value.
  • rolling_corrrolling_window and cov
  • rolling_covrolling_window and cov
  • spearman_rank_corrrank and propagate_nans and cov
    Compute the spearman rank correlation between two columns. Missing data will be excluded from the computation.
  • Sum all the values in the column named name. Shorthand for col(name).sum().
  • Sum all values horizontally across columns.
  • time_rangerange and dtype-time
    Generate a time range.
  • time_rangesrange and dtype-time
    Create a column of time ranges from a start and stop expression.