modin.pandas.Index.size

property Index.size: int[source]

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