drop

pydiverse.transform.drop(*cols: Col | ColName | str) Pipeable[source]

Removes a subset of the columns.

Parameters:

cols – The columns to be removed.

Examples

>>> t = pdt.Table({"a": [3, 2, 6, 4], "b": ["lll", "g", "u0", "__**_"]})
>>> t >> drop(t.a) >> show()
shape: (4, 1)
┌───────┐
│ b     │
│ ---   │
│ str   │
╞═══════╡
│ lll   │
│ g     │
│ u0    │
│ __**_ │
└───────┘