modin.pandas.Index.empty¶
- property Index.empty: bool[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/index.py#L492-L494)¶
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
>>> idx = pd.Index([], dtype='int64') >>> idx Index([], dtype='int64') >>> idx.empty True