Ciaren

Drop columns

Drop columns — dropColumns

Remove one or more columns.

Use cases

  • Strip internal IDs, scratch columns, or PII before sharing or saving.
  • Slim a wide frame down before a join or export.

What it does

Removes the listed columns; all other columns pass through unchanged.

Before
idnameinternal_idtemp_notesamount
1Alicesys-001check later120.5
2Bobsys-002null89
2 rows · 5 cols
Drop columns (columns=[internal_id, temp_notes])
After
idnameamount
1Alice120.5
2Bob89
2 rows · 3 cols

Configuration

Config keyTypeRequiredDescription
columnsstring[]YesColumns to remove

Generated Python code

df_2 = df_1.drop(columns=['internal_id', 'temp_notes'])

Tips & common mistakes

  • To keep a few columns, invert the operation with Select columns instead of listing everything you don't want.
  • Dropping a column other nodes downstream reference will surface as a validation error when you run the flow.

See also