pandas.DataFrame.iloc — pandas 0.18.1 documentation (original) (raw)

DataFrame.iloc

Purely integer-location based indexing for selection by position.

.iloc[] is primarily integer position based (from 0 tolength-1 of the axis), but may also be used with a boolean array.

Allowed inputs are:

.iloc will raise IndexError if a requested indexer is out-of-bounds, except slice indexers which allow out-of-bounds indexing (this conforms with python/numpy slice semantics).

See more at Selection by Position