📖 INDEX
LOADING ENGINE...
df.count()
AI & DATA SCIENCE // df-count
Count non-NA cells for each column or row.
Syntax
c = df.count()Examples
Example 01Basic Usage
c = df.count()Best Practices
- Use vectorized operations over iterations (e.g.
iterrows()) for performance. - Always verify memory usage when loading large files.