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 3474043 commit d070b06Copy full SHA for d070b06
pandas/core/indexes/base.py
@@ -4912,9 +4912,8 @@ 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.
+ .. versionchanged:: 3.0.0
+ The returned array is read-only.
4918
4919
Returns
4920
-------
0 commit comments