Skip to main content
Version: 1.1.0

concat

def concat(items: Iterable[TdType]) -> TdType

Categories: union

Combine multiple TableFrames by stacking their rows.

Parameters

parameter
items

The 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
└──────┴──────┘