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
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/pandas/dataframe/dataframe-empty.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics