vDataFrame.iloc

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

Returns a part of the vDataFrame (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.
columns
list
✓
A list containing the names of the vcolumns to include in the result. If empty, all the vcolumns will be selected.

Returns

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

Example

In [11]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
titanic.iloc(limit = 3, offset = 20, columns = ["age", "pclass"])
123
age
Numeric(6,3)
123
pclass
Int
2149.0001
2236.0001
2346.0001
Out[11]:
Rows: 21-23 of 1234 | Columns: 2

See Also

vDataFrame.head Returns the vDataFrame head.
vDataFrame.tail Returns the vDataFrame tail.