Skip to main content

Remove Column

Removes a specified column from a data table.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Table - The input data table from which to remove a column.
  • Column Name - The name of the column to be removed.

Options

  • Output Type - Specifies whether to pass the table by reference or by value. Options are:
    • Pass By Reference
    • Pass By Value

Output

  • Table - The resulting data table with the specified column removed.

How It Works

The Remove Column node removes a specified column from a data table. When executed, the node:

  1. Validates that the input table is not empty and is valid
  2. Checks if the table is a reference table and handles it appropriately
  3. Validates that the column name is not empty
  4. Converts the data table to a pandas DataFrame
  5. Removes the specified column from the DataFrame
  6. Converts the modified DataFrame back to the data table format
  7. Returns the updated table

Requirements

  • A valid input data table
  • A valid column name that exists in the table

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid input table
  • Empty column name
  • Invalid table structure
  • Column name does not exist in the table

Usage Notes

  • The Output Type option can be set to "Pass By Reference" for handling large tables more efficiently
  • The node permanently removes the specified column from the table
  • All data in the removed column is lost
  • The node supports removing any column from the table regardless of its position