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

modin.pandas.Index.values¶

property Index.values: Union[ExtensionArray, ndarray][source]¶

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])
Copy