modin.pandas.Index.empty

property Index.empty: bool[source]

Whether the index is empty.

Returns:

True if the index has no elements, False otherwise.

Return type:

bool

Examples

>>> idx = pd.Index([1, 2, 3])
>>> idx
Index([1, 2, 3], dtype='int64')
>>> idx.empty
False
Copy
>>> idx = pd.Index([], dtype='int64')
>>> idx
Index([], dtype='int64')
>>> idx.empty
True
Copy