vDataFrame[].head

In [ ]:
vDataFrame[].head(limit: int = 5)

Returns the vcolumn head.

Parameters

Name Type Optional Description
limit
int
✓
Number of elements to display.

Returns

tablesample : An object containing the result. For more information, see utilities.tablesample.

Example

In [81]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
titanic["age"].head(limit = 3)
123
age
Numeric(6,3)
12.000
230.000
325.000
Out[81]:
Rows: 1-3 of 1234 | Column: age | Type: numeric(6,3)

See Also

vDataFrame[].tail Returns the a part of the vcolumn.