pandas / 1.4.0 / reference / api / pandas.index.values.html /

pandas.Index.values

property Index. values

Return an array representing the data in the Index.

Warning

We recommend using Index.array or Index.to_numpy(), depending on whether you need a reference to the underlying data or a NumPy array.

Returns
array: numpy.ndarray or ExtensionArray

See also

Index.array

Reference to the underlying data.

Index.to_numpy

A NumPy array representing the underlying data.

© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.4.0/reference/api/pandas.Index.values.html