Expand description
§Functions
Functions on expressions that might be useful.
Structs§
- Datetime
Args temporal
- Arguments used by
datetime
in order to produce anExpr
of Datetime - Duration
Args temporal
- Arguments used by
duration
in order to produce anExpr
ofDuration
Functions§
- all
- Selects all columns. Shorthand for
col("*")
. - 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.
- apply_
binary - Like
map_binary
, but used in a group_by-aggregation context. - arange
range
- Generate a range of integers.
- arg_
sort_ by ( range
orarg_where
) andrange
- Find the indexes that would sort these series in order of appearance.
- arg_
where ( range
orarg_where
) andarg_where
- Get the indices where
condition
evaluatestrue
. - as_
struct dtype-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
. - business_
day_ count business
anddtype-date
- 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.
- cols
- Select multiple columns by name.
- concat_
arr - Horizontally concatenate columns into a single array-type column.
- concat_
expr - concat_
list - Concat lists entries.
- concat_
str concat_str
andstrings
- Horizontally concat string columns in linear time
- cov
cov
- Compute the covariance between two columns.
- cum_
fold_ exprs dtype-struct
- Accumulate over multiple columns horizontally / row wise.
- cum_
reduce_ exprs dtype-struct
- Accumulate over multiple columns horizontally / row wise.
- date_
range range
andtemporal
- Create a date range from a
start
andstop
expression. - date_
ranges range
andtemporal
- Create a column of date ranges from a
start
andstop
expression. - datetime
temporal
- Construct a column of
Datetime
from the providedDatetimeArgs
. - datetime_
range range
anddtype-datetime
- Create a datetime range from a
start
andstop
expression. - datetime_
ranges range
anddtype-datetime
- 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
temporal
- Construct a column of
Duration
from the providedDurationArgs
- fold_
exprs - Accumulate over multiple columns horizontally / row wise.
- format_
str concat_str
andstrings
- Format the results of an array of expressions using a format string
- index_
cols - Select multiple columns by index.
- int_
range range
- Generate a range of integers.
- int_
ranges range
- 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 range
- Generate a series of equally-spaced points.
- map_
binary - Apply a closure on the two columns that are evaluated from
Expr
a andExpr
b. - max
- Find the maximum of all the values in the column named
name
. Shorthand forcol(name).max()
. - max_
horizontal - Create a new column with the maximum value per row.
- mean
- Find the mean of all the values in the column named
name
. Shorthand forcol(name).mean()
. - mean_
horizontal - Compute the mean of all values horizontally across columns.
- 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()
. - min_
horizontal - Create a new column with the minimum value per row.
- not
- Negates a boolean column.
- pearson_
corr cov
- 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_window
andcov
- rolling_
cov rolling_window
andcov
- spearman_
rank_ corr rank
andpropagate_nans
andcov
- 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()
. - sum_
horizontal - Sum all values horizontally across columns.
- time_
range range
anddtype-time
- Generate a time range.
- time_
ranges range
anddtype-time
- Create a column of time ranges from a
start
andstop
expression.