Skip to main content
Version: 1.9.0

all

def all() -> SelectorProxy

Categories: projection

Select all columns in a TableFrame.

Examples

>>> import tabsdata.tableframe as td_tf
>>>
>>> tf = td_tf.TableFrame({
... "Id": [1, 2, 3, 4, 5, 6, 7, 8],
... "Name": ["a", "b", "c", "d", "e", "f", "g", "h"]
... })

Original: ┌─────┬──────┐ │ Id ┆ Name │ │ --- ┆ --- │ │ i64 ┆ str │ ╞═════╪══════╡ │ 1 ┆ "a" │ │ 2 ┆ "b" │ │ 3 ┆ "c" │ │ 4 ┆ "d" │ │ 5 ┆ "e" │ │ 6 ┆ "f" │ │ 7 ┆ "g" │ │ 8 ┆ "h" │ └─────┴──────┘

>>> tf.select(td_tf.selectors.all())

Selected: ┌─────┬──────┐ │ Id ┆ Name │ │ --- ┆ --- │ │ i64 ┆ str │ ╞═════╪══════╡ │ 1 ┆ "a" │ │ 2 ┆ "b" │ │ 3 ┆ "c" │ │ 4 ┆ "d" │ │ 5 ┆ "e" │ │ 6 ┆ "f" │ │ 7 ┆ "g" │ │ 8 ┆ "h" │ └─────┴──────┘