modin.pandas.Index.size

property Index.size: int[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/index.py#L484-L486)

Get the number of elements in the underlying data.

Returns:

The number of elements in self

Return type:

int

Examples

>>> idx = pd.Index([1, 2, 3])
>>> idx
Index([1, 2, 3], dtype='int64')
>>> idx.size
3
Copy
Language: English