Rename columns in Table

../../../../../_images/rename_columns.svg

Rename columns in Table(s) using a regular expression.

Group references may be used in the replacement expression.

If several columns match the search expression resulting in the same column name, the last of the matching columns will be copied to the output and the other columns will be removed. Note that renamed columns (i.e. any columns that match the search expression) always take precedence over non-renamed ones.

Ref. nodes:Rename columns in Tables with Table

Ports:

Inputs:

Input:

table

Input

Outputs:

Output:

table

Output

Configuration:

src_expr
Specify the regular expression which will be replaced
dst_expr
Specify the regular expression for replacement

The columns in Tables are renamed by the nodes in this category. The renamed columns, together with not modified ones, are then located in the outgoing Tables.

The two nodes in the category provide different approaches to specify the input to the renaming process. One of the nodes uses an additional incoming Table as a dictionary while the other provides the possibility to specify regular expressions for search and replace. For more detailed information about the configuration of the nodes can be found in the documentation of the specific node.

class node_rename_columns.RenameSingleTableColumns