← Back to all posts

DataFrame Operations

On this page

Purpose

DataFrame Operations changes rows or columns in one DataFrame. Each node runs one selected operation and returns a DataFrame.

When to use it

  • Filter or sort tabular results.
  • Add, remove, rename, or select columns.
  • Preview the first or last rows.
  • Replace values or remove duplicate rows before downstream processing.

How to use it

  1. Connect a DataFrame-producing component to DataFrame.
  2. Select an Operation.
  3. Set the fields shown for that operation.
  4. Connect the resulting DataFrame to the next component.

Configuration

OperationVisible fieldsWhat it does
Add ColumnNew Column Name, New Column ValueAdds a constant to every row. An existing name is overwritten.
Drop ColumnColumn NameRemoves one named column.
FilterColumn Name, Filter Value, Filter OperatorKeeps matching rows. equals is the default.
HeadNumber of RowsReturns the first rows. The default is 5.
Rename ColumnColumn Name, New Column NameRenames one column. A missing source name leaves the table unchanged.
Replace ValueColumn Name, Value to Replace, Replacement ValueReplaces exact values in one column.
Select ColumnsColumns to SelectKeeps entered columns in entered order.
SortColumn Name, Sort AscendingSorts one column. Sort Ascending defaults to on.
TailNumber of RowsReturns the last rows. The default is 5.
Drop DuplicatesColumn NameKeeps the first row for each value in one column.

Each node runs one operation. Use another DataFrame Operations node for the next transformation.

Expected result

The component always returns a DataFrame. Head and Tail return all available rows when the input has fewer rows than requested. With no selected operation, it returns an unchanged copy. Column names are case-sensitive. Changing Operation hides old values but does not clear them.

Reference details

The Filter contains operator follows pandas matching behavior, including its regex handling. Ordered filters try numeric comparison, then fall back to string comparison when conversion fails. Rename Column can leave the table unchanged when the named column is absent. Select Columns and the other column operations raise an error for a missing or case-mismatched column.

← Back to all posts