Skip to content

Commit 8095eb4

Browse files
committed
Simple idx.array immutability
1 parent 7c6dfee commit 8095eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3839,7 +3839,7 @@ def array(self) -> ExtensionArray:
38393839
if isinstance(array, np.ndarray):
38403840
from pandas.core.arrays.numpy_ import PandasArray
38413841

3842-
array = PandasArray(array)
3842+
array = PandasArray(self.values)
38433843
return array
38443844

38453845
@property

0 commit comments

Comments
 (0)