modin.pandas.Index.values¶
- property Index.values: Union[ExtensionArray, ndarray][source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/index.py#L361-L363)¶
Return an array representing the data in the Index.
- Returns:
array representing the index data
- Return type:
numpy.ndarray or ExtensionArray
See also
Index.array
Reference to the underlying data.
Examples
For
pd.Index
:>>> idx = pd.Index([1, 2, 3]) >>> idx Index([1, 2, 3], dtype='int64') >>> idx.values array([1, 2, 3])