tablesample.transpose

In [ ]:
tablesample.transpose()

Transposes the tablesample.

Returns

tablesample : transposed tablesample

Example

In [22]:
from verticapy.utilities import *
dataset = tablesample(values = {"index": ["region", "price", "quality"],
                                "Banana": ["Brazil", 2.3, 2],
                                "Manguo": ["Columbia", 6.7, 5],
                                "Apple": ["France", 1.5, 2]},)
display(dataset)
Banana
Manguo
Apple
regionBrazilColumbiaFrance
price2.36.71.5
quality252
Rows: 1-3 | Columns: 4
In [23]:
dataset.transpose()
Out[23]:
region
price
quality
BananaBrazil2.32
ManguoColumbia6.75
AppleFrance1.52
Rows: 1-3 | Columns: 4