We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d538a1c commit 3474043Copy full SHA for 3474043
pandas/core/indexes/base.py
@@ -4912,6 +4912,10 @@ def values(self) -> ArrayLike:
4912
:meth:`Index.to_numpy`, depending on whether you need
4913
a reference to the underlying data or a NumPy array.
4914
4915
+ Modifying 'Index.values' directly is not supported and can lead to memory
4916
+ corruption or segmentation faults. This is because 'Index.values' provides
4917
+ a direct reference to internal NumPy data.
4918
+
4919
Returns
4920
-------
4921
array: numpy.ndarray or ExtensionArray
0 commit comments