📖 INDEX
LOADING ENGINE...
df.shape
AI & DATA SCIENCE // df-shape
Return a tuple representing the dimensionality of the DataFrame.
Syntax
rows, cols = df.shapeExamples
Example 01Basic Usage
rows, cols = df.shapeBest Practices
- Use vectorized operations over iterations (e.g.
iterrows()) for performance. - Always verify memory usage when loading large files.