API Reference

General

Expressions for general-purpose data transformation.

bulk_append Combines multiple Polars expressions using pl.Expr.append() internally.
bucketize Returns a Polars expression that assigns a label to each row based on its index, cycling through the provided expressions in a round-robin fashion.
bucketize_lit Returns a Polars expression that assigns a label to each row based on its index, cycling through the provided items in a round-robin fashion.
case_when Simplifies conditional logic in Polars by chaining multiple when-then-otherwise expressions.
cycle Return a Polars expression that cycles the rows by a given offset.
is_every_nth_row Returns a Polars expression that is True for every n-th row (index modulo n equals 0).
prepend Returns a Polars expression that prepends rows using the prepend_expr= parameter.
shift A variant of pl.Expr.shift() that allows filling shifted values using another Polars expression.
make_concat_str Construct a concatenated string expression by treating column names as placeholders within a template string.
make_index Returns a Polars expression that creates a virtual row index.
move_cols_to_end Returns a list of Polars expressions that reorder columns so the specified columns appear last.
move_cols_to_start Returns a list of Polars expressions that reorder columns so the specified columns appear first.

HTML

Expressions for generating HTML tags.

make_hyperlink Returns a Polars expression that generates an HTML hyperlink (<a> tag) for each row.
make_tooltip Returns a Polars expression that generates an HTML tooltip for each row.