select¶
- pydiverse.transform.select(*cols: Col | ColName | str) Pipeable[source]¶
Selects a subset of columns.
- Parameters:
cols – The columns to be included in the resulting table.
Examples
>>> t = pdt.Table({"a": [3, 2, 6, 4], "b": ["lll", "g", "u0", "__**_"]}) >>> t >> select(t.a) >> show() shape: (4, 1) ┌─────┐ │ a │ │ --- │ │ i64 │ ╞═════╡ │ 3 │ │ 2 │ │ 6 │ │ 4 │ └─────┘