Pandas DataFrame property: empty
DataFrame - empty property
The empty property indicates whether DataFrame is empty or not.
True if DataFrame is entirely empty (no items), meaning any of the axes are of length 0.
Syntax:
DataFrame.empty
Returns: bool,
If DataFrame is empty, return True, if not return False.
Notes
If DataFrame contains only NaNs, it is still not considered empty.
Example:
Download the Pandas DataFrame Notebooks from here.
Previous: DataFrame - memory_usage() function
Next: DataFrame - astype() function
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework