Expand description
§Functions
Function on multiple expressions.
Structs§
- Chained
Then - Utility struct for the
when-then-otherwise
expression. - Chained
When - Utility struct for the
when-then-otherwise
expression. - Datetime
Args - Arguments used by
datetime
in order to produce anExpr
of Datetime - Duration
Args - Arguments used by
duration
in order to produce anExpr
ofDuration
- Then
- Utility struct for the
when-then-otherwise
expression. - When
- Utility struct for the
when-then-otherwise
expression.
Functions§
- all
- Selects all columns.
- all_
horizontal - Create a new column with the bitwise-and of the elements in each row.
- any_
horizontal - Create a new column with the bitwise-or of the elements in each row.
- arange
- Generate a range of integers.
- arg_
sort_ by - Find the indexes that would sort these series in order of appearance.
- arg_
where - Get the indices where
condition
evaluatestrue
. - as_
struct - Take several expressions and collect them into a
StructChunked
. - avg
- Find the mean of all the values in the column named
name
. Alias formean
. - binary_
expr - Compute
op(l, r)
(or equivalentlyl op r
).l
andr
must have types compatible with the Operator. - by_name
- Select multiple columns by dtype.
- cast
- Casts the column given by
Expr
to a different type. - coalesce
- Folds the expressions from left to right keeping the first non-null values.
- col
- Create a Column Expression based on a column name.
- collect_
all - Collect all
LazyFrame
computations. - cols
- Select multiple columns by name.
- concat
- Concat multiple
LazyFrame
s vertically. - concat_
arr - Horizontally concatenate columns into a single array-type column.
- concat_
expr - concat_
lf_ diagonal diagonal_concat
- Concat LazyFrames diagonally.
Calls
concat
internally. - concat_
lf_ horizontal - Concat LazyFrames horizontally.
- concat_
list - Concat lists entries.
- concat_
str - Horizontally concat string columns in linear time
- cov
- Compute the covariance between two columns.
- cum_
fold_ exprs - Accumulate over multiple columns horizontally / row wise.
- cum_
reduce_ exprs - Accumulate over multiple columns horizontally / row wise.
- date_
range - Create a date range from a
start
andstop
expression. - date_
ranges - Create a column of date ranges from a
start
andstop
expression. - datetime
- Construct a column of
Datetime
from the providedDatetimeArgs
. - datetime_
range - Create a datetime range from a
start
andstop
expression. - datetime_
ranges - Create a column of datetime ranges from a
start
andstop
expression. - dtype_
col - Select multiple columns by dtype.
- dtype_
cols - Select multiple columns by dtype.
- duration
- Construct a column of
Duration
from the providedDurationArgs
- empty
- Selects no columns.
- fold_
exprs - Accumulate over multiple columns horizontally / row wise.
- format_
str - Format the results of an array of expressions using a format string
- index_
cols - Select multiple columns by index.
- int_
range - Generate a range of integers.
- int_
ranges - Generate a range of integers for each row of the input columns.
- is_
not_ null - A column which is
false
whereverexpr
is null,true
elsewhere. - is_null
- A column which is
true
whereverexpr
is null,false
elsewhere. - linear_
space - Generate a series of equally-spaced points.
- linear_
spaces - Create a column of linearly-spaced sequences from ‘start’, ‘end’, and ‘num_samples’ expressions.
- max
- Find the maximum of all the values in the column named
name
. Shorthand forcol(name).max()
. - mean
- Find the mean of all the values in the column named
name
. Shorthand forcol(name).mean()
. - median
- Find the median of all the values in the column named
name
. Shorthand forcol(name).median()
. - min
- Find the minimum of all the values in the column named
name
. Shorthand forcol(name).min()
. - not
- Negates a boolean column.
- pearson_
corr - Compute the pearson correlation between two columns.
- quantile
- Find a specific quantile of all the values in the column named
name
. - reduce_
exprs - Analogous to
Iterator::reduce
. - repeat
- Create a column of length
n
containingn
copies of the literalvalue
. - rolling_
corr - rolling_
cov - spearman_
rank_ corr - Compute the spearman rank correlation between two columns. Missing data will be excluded from the computation.
- sum
- Sum all the values in the column named
name
. Shorthand forcol(name).sum()
. - ternary_
expr - time_
range - Generate a time range.
- time_
ranges - Create a column of time ranges from a
start
andstop
expression. - when
- Start a
when-then-otherwise
expression.