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