concat
functionView source ↗
def concat(items: Iterable[TdType]) -> TdType
Categories: union
Combine multiple TableFrames by stacking their rows.
Parameters
parameter
itemsThe TableFrames to concatenate.
Examples
>>> import tabsdata as td
>>>
>>> tf1: td.TableFrame ...
>>>
┌──────┬──────┐
│ a ┆ b │
│ --- ┆ --- │
│ str ┆ i64 │
╞══════╪══════╡
│ a ┆ 1 │
│ b ┆ 2 │
└──────┴──────┘
>>>
>>> tf2: td.TableFrame ...
>>>
┌──────┬──────┐
│ a ┆ b │
│ --- ┆ --- │
│ str ┆ i64 │
╞══════╪══════╡
│ x ┆ 10 │
│ y ┆ 20 │
└──────┴──────┘
>>>
>>> tf = td.concat(tf1, tf2)
>>>
┌──────┬──────┐
│ a ┆ b │
│ --- ┆ --- │
│ str ┆ i64 │
╞══════╪══════╡
│ a ┆ 1 │
│ b ┆ 2 │
│ x ┆ 10 │
│ y ┆ 20 │
└──────┴──────┘