📖 INDEX
LOADING ENGINE...
df.iloc[]
AI & DATA SCIENCE // df-iloc
Purely integer-location based indexing for selection by position.
Syntax
sub_df = df.iloc[0:5, 0:2]Examples
Example 01Basic Usage
sub_df = df.iloc[0:5, 0:2]Best Practices
- Use vectorized operations over iterations (e.g.
iterrows()) for performance. - Always verify memory usage when loading large files.