vDataFrame[].iloc

In [ ]:
vDataFrame[].iloc(limit: int = 5, 
                  offset: int = 0)

Returns a part of the vcolumn (delimited by an offset and a limit).

Parameters

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

Returns

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

Example

In [2]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
titanic["age"].iloc(limit = 3, offset = 100)
123
age
Numeric(6,3)
10157.000
10262.000
103[null]
Out[2]:
Rows: 101-103 of 1234 | Column: age | Type: numeric(6,3)

See Also

vDataFrame[].head Returns the vcolumn head.
vDataFrame[].tail Returns the vcolumn tail.