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

modin.pandas.Index.item

Index.item() Hashable[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.21.0/src/snowflake/snowpark/modin/plugin/extensions/index.py#L1593-L1617)

Return the first element of the underlying data as a Python scalar.

Returns:

The first element of Series or Index.

Return type:

scalar

Raises:

ValueError – If the data is not length = 1.

Language: English