pandas.Index.values#
- property Index.values[source]#
Return an array representing the data in the Index.
Warning
We recommend using
Index.arrayorIndex.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.arrayReference to the underlying data.
Index.to_numpyA NumPy array representing the underlying data.