@property<EOL><INDENT>def values(self):<DEDENT>
return self._data.view(np.ndarray)<EOL>
Return an array representing the data in the Index.

.. warning::

   We recommend using :attr:`Index.array` or
   :meth:`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.