Columns / names#

col(name)

Return an expression representing a column in a DataFrame.

Expr.alias(name)

Rename the output of an expression.

Expr.exclude(columns)

Exclude certain columns from a wildcard/regex selection.

Expr.keep_name()

Keep the original root name of the expression.

Expr.map_alias(f)

Rename the output of an expression by mapping a function over the root name.

Expr.prefix(prefix)

Add a prefix to the root column name of the expression.

Expr.suffix(suffix)

Add a suffix to the root column name of the expression.