You are viewing documentation about an older version (1.21.0). View latest version

modin.pandas.Index.shape

property Index.shape: tuple[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.21.0/src/snowflake/snowpark/modin/plugin/extensions/index.py#L458-L476)

Get a tuple of the shape of the underlying data.

Returns:

A tuple representing the shape of self

Return type:

tuple

Examples

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