Meta#

The following methods are available under the expr.meta attribute.

Expr.meta.eq(other)

Indicate if this expression is the same as another expression.

Expr.meta.has_multiple_outputs()

Indicate if this expression expands into multiple expressions.

Expr.meta.is_column()

Indicate if this expression is a basic (non-regex) unaliased column.

Expr.meta.is_column_selection(*[, ...])

Indicate if this expression only selects columns (optionally with aliasing).

Expr.meta.is_literal(*[, allow_aliasing])

Indicate if this expression is a literal value (optionally aliased).

Expr.meta.is_regex_projection()

Indicate if this expression expands to columns that match a regex pattern.

Expr.meta.ne(other)

Indicate if this expression is NOT the same as another expression.

Expr.meta.output_name(*[, raise_if_undetermined])

Get the column name that this expression would produce.

Expr.meta.pop()

Pop the latest expression and return the input(s) of the popped expression.

Expr.meta.root_names()

Get a list with the root column name.

Expr.meta.serialize([file, format])

Serialize this expression to a file or string in JSON format.

Expr.meta.show_graph(*[, show, output_path, ...])

Format the expression as a Graphviz graph.

Expr.meta.tree_format(*[, return_as_string])

Format the expression as a tree.

Expr.meta.undo_aliases()

Undo any renaming operation like alias or name.keep.

Expr.meta.write_json([file])

Write expression to json.