Skip to content

Commit e5748f9

Browse files
jbrockmendelfeefladder
authored andcommitted
PERF: Series.mad (pandas-dev#43010)
1 parent cf0b4a3 commit e5748f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/core/internals/managers.py

+7
Original file line numberDiff line numberDiff line change
@@ -1714,6 +1714,13 @@ def array_values(self):
17141714
"""The array that Series.array returns"""
17151715
return self._block.array_values
17161716

1717+
def get_numeric_data(self, copy: bool = False):
1718+
if self._block.is_numeric:
1719+
if copy:
1720+
return self.copy()
1721+
return self
1722+
return self.make_empty()
1723+
17171724
@property
17181725
def _can_hold_na(self) -> bool:
17191726
return self._block._can_hold_na

0 commit comments

Comments
 (0)