pyspark.pandas.DataFrame.empty

property DataFrame.empty

Returns true if the current DataFrame is empty. Otherwise, returns false.

Examples

>>> ps.range(10).empty
False
>>> ps.range(0).empty
True
>>> ps.DataFrame({}, index=list('abc')).empty
True