verticapy.core.tablesample.base.TableSample.to_pandas#
- TableSample.to_pandas() DataFrame #
Converts the
TableSample
to apandas.DataFrame
.Returns#
- pandas.DataFrame
pandas.DataFrame
of theTableSample
.
Examples#
Let’s import the
TableSample
object:from verticapy import TableSample
Let’s build an example object.
# dict with all the data. d = { "customer_ID": [0, 1, 2, 3], "age": [40, 30, 22, 55], "name": ['Roger', 'Maria', 'Alisia', 'Costi'], } # creating the object. tb = TableSample(d)
customer_ID age name 1 0 40 Roger 2 1 30 Maria 3 2 22 Alisia 4 3 55 Costi Rows: 1-4 | Columns: 3Let’s use the function.
tb.to_pandas() Out[4]: customer_ID age name 0 0 40 Roger 1 1 30 Maria 2 2 22 Alisia 3 3 55 Costi
See also