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"])
Out[11]:
See Also¶
| vDataFrame.head | Returns the vDataFrame head. |
| vDataFrame.tail | Returns the vDataFrame tail. |
