@@ -3872,50 +3872,6 @@ def _values(self) -> Union[ExtensionArray, np.ndarray]:
3872
3872
"""
3873
3873
return self ._data
3874
3874
3875
- def _internal_get_values (self ) -> np .ndarray :
3876
- """
3877
- Return `Index` data as an `numpy.ndarray`.
3878
-
3879
- Returns
3880
- -------
3881
- numpy.ndarray
3882
- A one-dimensional numpy array of the `Index` values.
3883
-
3884
- See Also
3885
- --------
3886
- Index.values : The attribute that _internal_get_values wraps.
3887
-
3888
- Examples
3889
- --------
3890
- Getting the `Index` values of a `DataFrame`:
3891
-
3892
- >>> df = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9]],
3893
- ... index=['a', 'b', 'c'], columns=['A', 'B', 'C'])
3894
- >>> df
3895
- A B C
3896
- a 1 2 3
3897
- b 4 5 6
3898
- c 7 8 9
3899
- >>> df.index._internal_get_values()
3900
- array(['a', 'b', 'c'], dtype=object)
3901
-
3902
- Standalone `Index` values:
3903
-
3904
- >>> idx = pd.Index(['1', '2', '3'])
3905
- >>> idx._internal_get_values()
3906
- array(['1', '2', '3'], dtype=object)
3907
-
3908
- `MultiIndex` arrays also have only one dimension:
3909
-
3910
- >>> midx = pd.MultiIndex.from_arrays([[1, 2, 3], ['a', 'b', 'c']],
3911
- ... names=('number', 'letter'))
3912
- >>> midx._internal_get_values()
3913
- array([(1, 'a'), (2, 'b'), (3, 'c')], dtype=object)
3914
- >>> midx._internal_get_values().ndim
3915
- 1
3916
- """
3917
- return self .values
3918
-
3919
3875
def _get_engine_target (self ) -> np .ndarray :
3920
3876
"""
3921
3877
Get the ndarray that we can pass to the IndexEngine constructor.
0 commit comments