Skip to content

Drop Column

Type: drop-column  ·  Package: DataTable Activities v1.0.0  ·  Output: DataTable

Removes one or more columns from a DataTable and returns a new table without them. Useful for keeping only the relevant data before writing a report, or for removing internal/temporary columns.

Removes the columns indicated in columns (a list of names) from the table. Returns a new table; the original does not change.

ParameterEditorDescription
tableexpressionThe DataTable to modify.
columnsarregloList of column names to delete, e.g. ["Interno", "Temp"].

Ninguno.

Returns a DataTable without the indicated columns.

Remove auxiliary columns before exporting:

Drop Column table = = datos columns = = arr("IdInterno", "Hash") → output: limpio
Write Excel Sheet path = "C:/out/export.xlsx" data = = limpio