tablesample.append

In [ ]:
tablesample.append(tbs: tablesample)

Appends the input tablesample to a target tablesample.

Parameters

Name Type Optional Description
tbs
tablesample
Tablesample to append.

Returns

self : tablesample.

Example

In [20]:
from verticapy.utilities import tablesample

dataset = tablesample(values = {"index": ["region", "price", "quality"],
                                "Banana": ["Brazil", 2.3, 2],
                                "Manguo": ["Columbia", 6.7, 5],
                                "Apple": ["France", 1.5, 2]},).transpose()

dataset2 = tablesample(values = {"index": ["region", "price", "quality"],
                                 "Banana": ["Portugal", 3.0, 3],
                                 "Manguo": ["Spain", 2.0, 3],
                                 "Apple": ["Germany", 4.0, 4]},).transpose()

display(dataset)
display(dataset2)
region
price
quality
BananaBrazil2.32
ManguoColumbia6.75
AppleFrance1.52
Rows: 1-3 | Columns: 4
region
price
quality
BananaPortugal3.03
ManguoSpain2.03
AppleGermany4.04
Rows: 1-3 | Columns: 4
In [21]:
dataset.append(dataset2)
Out[21]:
region
price
quality
BananaBrazil2.32
ManguoColumbia6.75
AppleFrance1.52
BananaPortugal3.03
ManguoSpain2.03
AppleGermany4.04
Rows: 1-6 | Columns: 4