📖 INDEX
LOADING ENGINE...
df.head()
AI & DATA SCIENCE // df-head
Return the first n rows.
Syntax
print(df.head(5))Examples
Example 01Basic Usage
print(df.head(5))Best Practices
- Use vectorized operations over iterations (e.g.
iterrows()) for performance. - Always verify memory usage when loading large files.