modin.pandas.Index.item¶
- Index.item() Hashable [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/index.py#L679-L690)¶
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.