Skip to content

Commit 40a8180

Browse files
Manju080mroeschke
andauthored
DOC: Update warning in Index.values docstring to clarify index modification which causes segmentation fault (#61069)
* DOC: Update warning in Index.values docstring to clarify index modification issues (#60954) * DOC: Update warning in Index.values docstring to clarify index modification issues (#60954) with changes * Update pandas/core/indexes/base.py Co-authored-by: Matthew Roeschke <[email protected]> * DOC : Fixing the whitespace which was causing error * Fixed docstring validation and formatting issues --------- Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 89bc204 commit 40a8180

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/indexes/base.py

+4
Original file line numberDiff line numberDiff line change
@@ -4922,6 +4922,10 @@ def values(self) -> ArrayLike:
49224922
:meth:`Index.to_numpy`, depending on whether you need
49234923
a reference to the underlying data or a NumPy array.
49244924
4925+
.. versionchanged:: 3.0.0
4926+
4927+
The returned array is read-only.
4928+
49254929
Returns
49264930
-------
49274931
array: numpy.ndarray or ExtensionArray

0 commit comments

Comments
 (0)