to_tablesample¶
In [ ]:
to_tablesample(query: str,
title: str = "")
Returns the result of a SQL query as a tablesample object.
Parameters¶
Name | Type | Optional | Description |
---|---|---|---|
query | str | ❌ | SQL Query. |
title | str | ✓ | Query title when the query is displayed. |
Returns¶
tablesample : An object containing the result. For more information, see utilities.tablesample.
Example¶
In [20]:
from verticapy.utilities import *
to_tablesample("SELECT * FROM public.titanic LIMIT 5")
Out[20]:
See Also¶
tablesample | Object in memory created for rendering purposes. |