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.
Index.array
Index.to_numpy()
See also
Reference to the underlying data.
Index.to_numpy
A NumPy array representing the underlying data.