We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ebbb56 commit 8e74325Copy full SHA for 8e74325
pandas/core/internals/managers.py
@@ -1596,10 +1596,6 @@ def internal_values(self):
1596
"""The array that Series._values returns"""
1597
return self._block.internal_values()
1598
1599
- def get_values(self) -> np.ndarray:
1600
- """ return a dense type view """
1601
- return np.array(self._block.to_dense(), copy=False)
1602
-
1603
@property
1604
def _can_hold_na(self) -> bool:
1605
return self._block._can_hold_na
pandas/core/series.py
@@ -537,7 +537,8 @@ def _internal_get_values(self):
537
numpy.ndarray
538
Data of the Series.
539
"""
540
- return self._data.get_values()
+ blk = self._data._block
541
+ return np.array(blk.to_dense(), copy=False)
542
543
# ops
544
def ravel(self, order="C"):
0 commit comments