pyspark.pandas.Index.empty

property Index.empty

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

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