iloc

IntegerLocation.__getitem__()

Get item(s) from the frame using integer location.

Parameters

argint or slice

The integer or slice to index.

Returns

Series or DataFrame

The indexed data.

Examples

>>> iloc[5]
Series(...)
>>> iloc[2:8]
DataFrame(...)